Commit e19e800
committed
beacon: explicit serve.js entrypoint for pm2/production
pm2 launches scripts through its own wrapper, so server.js's
import.meta.url main-guard never fires and startServer() is never called
(process stays up but binds nothing). serve.js imports and calls
startServer() unconditionally — robust under pm2, systemd, or direct node.1 parent 02085eb commit e19e800
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments