From 354e6851e70d7c19106af0d4f14c2b2751e7167d Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 24 Jan 2020 06:44:55 +0000 Subject: Changes from ages ago --- src/files.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/files.ts') diff --git a/src/files.ts b/src/files.ts index b2440a5..286e073 100644 --- a/src/files.ts +++ b/src/files.ts @@ -28,10 +28,10 @@ const imgQueueSize = profiler.counter({ agg_type: "sum" }) -const BASE_BASE: string = `/cs/scratch/${require("os").userInfo().username}/` -const CONTENT_BASE_DIRECTORY: string = BASE_BASE + 'files'; -const LOG_BASE_DIRECTORY: string = BASE_BASE + 'logs'; -const TEMP_BASE_DIRECTORY: string = BASE_BASE + 'files-temp'; +const BASE_BASE: string = `${__dirname}/../data` +const CONTENT_BASE_DIRECTORY: string = BASE_BASE + '/files'; +const LOG_BASE_DIRECTORY: string = BASE_BASE + '/logs'; +const TEMP_BASE_DIRECTORY: string = BASE_BASE + '/files-temp'; export interface Metadata { version: number; -- cgit v1.2.1