Attempt Windows and PM2 fix again

This commit is contained in:
00Fjongl 2024-08-07 19:01:57 -05:00
parent 20a32288ad
commit 976513b851
2 changed files with 5 additions and 5 deletions

View file

@ -9,10 +9,10 @@
"restart": "node run-command.mjs stop start",
"stop": "node run-command.mjs stop",
"test": "npm run proxy-validator",
"pm2-start": "pm2 start ecosystem.config.js --env production --watch false",
"pm2-stop": "pm2 stop ecosystem.config.js",
"pm2-monit": "pm2 monit",
"pm2-nuke": "pm2 delete ecosystem.config.js",
"pm2-start": "npx pm2 start ecosystem.config.js --env production --watch false",
"pm2-stop": "npx pm2 stop ecosystem.config.js",
"pm2-monit": "npx pm2 monit",
"pm2-nuke": "npx pm2 delete ecosystem.config.js",
"manual-start": "node run-command.mjs start",
"kill": "node run-command.mjs stop kill",
"build": "node run-command.mjs build && cd lib/rammerhead && npm install && npm run build",

View file

@ -35,7 +35,7 @@ for (let i = 2; i < process.argv.length; i++)
// Handle setup on Windows differently from platforms with POSIX-compliant shells.
// This should run the server as a background process.
else if (process.platform === "win32")
exec('START /MIN "" "node backend.js"', (error, stdout) => {
exec('START /MIN "" node backend.js', (error, stdout) => {
if (error) throw error;
console.log(stdout);
});