diff --git a/.env.development b/.env.development index c5aacd3..16b3475 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,2 @@ MEDIA_PATH=~/Desktop/IMS -PORT=8000 -IMS_TOKEN=ImEXMS \ No newline at end of file +PORT=8000 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2b5cd33..72bb4bd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: - /root/.docker/config.json:/config.json command: --interval 3600 caddy: - image: caddy/caddy:latest + image: caddy:latest container_name: caddy-service restart: unless-stopped ports: diff --git a/util/serverInit.ts b/util/serverInit.ts index 8cc4d9f..cdf0a8f 100644 --- a/util/serverInit.ts +++ b/util/serverInit.ts @@ -11,6 +11,7 @@ dotenv.config({ const RootDirectory = process.env.MEDIA_PATH!.replace("~", os.homedir); const JobsFolder = "Jobs"; const VendorsFolder = "Vendors"; + export const FolderPaths = { Root: RootDirectory, Jobs: path.join(RootDirectory, JobsFolder), @@ -30,4 +31,5 @@ export default function InitServer() { logger.info(`Ensuring Vendors media path exists: ${FolderPaths.Vendors}`); fs.ensureDirSync(FolderPaths.Vendors); logger.info("Folder Paths", FolderPaths); + logger.info("IMS Token set to:", (process.env.IMS_TOKEN || "").trim()); }