mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
Test server startup on GitHub workflow
This commit is contained in:
parent
4119a28bb4
commit
2cad648413
1 changed files with 16 additions and 4 deletions
|
@ -59,14 +59,26 @@ commands: for (let i = 2; i < process.argv.length; i++)
|
|||
fileURLToPath(new URL('./backend.js', import.meta.url)),
|
||||
{
|
||||
cwd: process.cwd(),
|
||||
stdio: ['inherit', 'inherit', 'pipe', 'ipc'],
|
||||
detached: true,
|
||||
stdio: ['inherit', 'pipe', 'pipe', 'ipc'],
|
||||
detached: true
|
||||
}
|
||||
);
|
||||
server.stderr.on('data', (stderr) => {
|
||||
server.stderr.on("data", stderr => {
|
||||
console.error(stderr.toString());
|
||||
if (stderr.toString().indexOf("DeprecationWarning") + 1)
|
||||
return;
|
||||
server.stderr.destroy();
|
||||
process.exitCode = 1;
|
||||
});
|
||||
server.stdout.on("data", () => {
|
||||
server.kill();
|
||||
const server2 = fork(
|
||||
fileURLToPath(new URL('./backend.js', import.meta.url)),
|
||||
{cwd: process.cwd(), detached: true}
|
||||
);
|
||||
server2.unref();
|
||||
server2.disconnect();
|
||||
});
|
||||
server.unref();
|
||||
server.disconnect();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue