Skip to content

Commit

Permalink
More tests for Windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
00Fjongl committed Aug 7, 2024
1 parent bc858eb commit 4df092d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "backend.js",
"scripts": {
"start": "npm install && npm run build && npm run manual-start",
"restart": "npm stop ; npm run manual-start",
"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",
Expand Down
4 changes: 2 additions & 2 deletions run-command.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const serverUrl = (base => {
return Object.freeze(base);
})();

const shutdown = new URL("./src/.shutdown", import.meta.url);
const shutdown = fileURLToPath(new URL("./src/.shutdown", import.meta.url));

for(let i = 2; i < process.argv.length; i++)
switch (process.argv[i]) {
Expand All @@ -28,7 +28,7 @@ for(let i = 2; i < process.argv.length; i++)
});
else {
const server = fork(
new URL("./backend.js", import.meta.url),
fileURLToPath(new URL("./backend.js", import.meta.url)),
{detached: true}
);
server.unref();
Expand Down

0 comments on commit 4df092d

Please sign in to comment.