Start of ESM update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import fs = require("fs-extra");
|
||||
import dotenv from "dotenv";
|
||||
import { ensureDirSync } from "fs-extra";
|
||||
import os from "os";
|
||||
import path, { resolve } from "path";
|
||||
import { logger } from "../server";
|
||||
@@ -36,11 +36,11 @@ export function BillsRelativeFilePath(jobid: string, filename: string) {
|
||||
}
|
||||
export default function InitServer() {
|
||||
logger.info(`Ensuring Root media path exists: ${FolderPaths.Root}`);
|
||||
fs.ensureDirSync(FolderPaths.Root);
|
||||
ensureDirSync(FolderPaths.Root);
|
||||
logger.info(`Ensuring Jobs media path exists: ${FolderPaths.Jobs}`);
|
||||
fs.ensureDirSync(FolderPaths.Jobs);
|
||||
ensureDirSync(FolderPaths.Jobs);
|
||||
logger.info(`Ensuring Vendors media path exists: ${FolderPaths.Vendors}`);
|
||||
fs.ensureDirSync(FolderPaths.Vendors);
|
||||
ensureDirSync(FolderPaths.Vendors);
|
||||
logger.info("Folder Paths", FolderPaths);
|
||||
logger.info("IMS Token set to: " + (process.env.IMS_TOKEN || "").trim());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user