fix: Make sure the process changes to the cwd

This commit is contained in:
Alexis Tyler
2021-03-08 16:51:10 +10:30
parent 391bd24502
commit 0ce833bf00

View File

@@ -72,6 +72,9 @@ const commands = {
// Set process title
process.title = 'unraid-api';
// Set cwd
process.chdir('/usr/local/bin/node/unraid-api/');
// Set envs
setEnv('DEBUG', mainOptions.debug);
setEnv('ENVIRONMENT', environment);