mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
More tests for Windows compatibility
This commit is contained in:
parent
bc858ebf22
commit
4df092d2da
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
"main": "backend.js",
|
"main": "backend.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npm install && npm run build && npm run manual-start",
|
"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",
|
"stop": "node run-command.mjs stop",
|
||||||
"test": "npm run proxy-validator",
|
"test": "npm run proxy-validator",
|
||||||
"pm2-start": "pm2 start ecosystem.config.js --env production",
|
"pm2-start": "pm2 start ecosystem.config.js --env production",
|
||||||
|
|
|
@ -16,7 +16,7 @@ const serverUrl = (base => {
|
||||||
return Object.freeze(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++)
|
for(let i = 2; i < process.argv.length; i++)
|
||||||
switch (process.argv[i]) {
|
switch (process.argv[i]) {
|
||||||
|
@ -28,7 +28,7 @@ for(let i = 2; i < process.argv.length; i++)
|
||||||
});
|
});
|
||||||
else {
|
else {
|
||||||
const server = fork(
|
const server = fork(
|
||||||
new URL("./backend.js", import.meta.url),
|
fileURLToPath(new URL("./backend.js", import.meta.url)),
|
||||||
{detached: true}
|
{detached: true}
|
||||||
);
|
);
|
||||||
server.unref();
|
server.unref();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue