mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 19:40:02 -04:00
Try Windows support again
This commit is contained in:
parent
34e923dea5
commit
6b9b889b0e
1 changed files with 2 additions and 3 deletions
|
@ -27,7 +27,7 @@ for(let i = 2; i < process.argv.length; i++)
|
|||
console.log(stdout);
|
||||
});
|
||||
else if (process.platform === "win32")
|
||||
exec("START", ["/B", "node", "backend.js"], (error, stdout) => {
|
||||
exec("START", ['""', "node", "backend.js"], (error, stdout) => {
|
||||
if (error) throw error;
|
||||
console.log(stdout);
|
||||
});
|
||||
|
@ -53,8 +53,7 @@ for(let i = 2; i < process.argv.length; i++)
|
|||
})
|
||||
]);
|
||||
if(response === "Error") throw new Error("Server is unresponsive.");
|
||||
}
|
||||
catch (e) {await unlink(shutdown)}
|
||||
} catch (e) {await unlink(shutdown)}
|
||||
if (config.production)
|
||||
exec("npm run pm2-stop", (error, stdout) => {
|
||||
if (error) throw error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue