1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-06 14:10:06 +00:00

feat: Enable DRIVE_LOCATION setting for deploying multiple instances of SASjs Server

This commit is contained in:
2022-11-02 20:05:12 +05:00
parent 7e684b54a6
commit 1c9d167f86
9 changed files with 44 additions and 26 deletions

View File

@@ -0,0 +1,11 @@
import { createFile, fileExists } from '@sasjs/utils'
import { getDesktopUserAutoExecPath } from './file'
import { ModeType } from './verifyEnvVariables'
export const setupUserAutoExec = async () => {
if (process.env.MODE === ModeType.Desktop) {
if (!(await fileExists(getDesktopUserAutoExecPath()))) {
await createFile(getDesktopUserAutoExecPath(), '')
}
}
}