Skip to content

Commit 9d12530

Browse files
authored
Fix server not running in actions (#26)
* chore: added debug check to process kill on post * chore: trying to see if we can get pid another way * chore: remove all the wierd stuff i did * chore: try not doing process.exit in main * chore: testing a run with fork instead of spawn * feat: revert to cjs * chore: removed semis inside bracket * chore: adding back process.exit since it otherwise does not exit now * chore: try with stdio ignore and no process.exit * fix: fixed my stupidity * chore: move back to esm * fix: align formatting with base branch
1 parent 916f419 commit 9d12530

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action/main.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const serverBinary = resolve(__dirname, './decay')
77

88
const decayProcess = spawn(serverBinary, [], {
99
detached: true,
10+
stdio: 'ignore',
1011
env: {
1112
...process.env,
1213
LOGS_DIRECTORY: LOGS_DIR,
@@ -23,4 +24,4 @@ Web server logs are being written at "${LOGS_DIR}"
2324
`)
2425

2526
saveState(DECAY_PID_KEY, pid)
26-
process.exit(0)
27+
process.exit(0)

0 commit comments

Comments
 (0)