Commit 10a0438
committed
fix: app now stops on Ctrl+C when running in Docker
Replace shell pipeline (| pino-pretty) with fastify-cli's built-in
options loading (-o). The logger transport with pino-pretty (singleLine)
is configured via the exported 'options' constant in server/plugin.js.
Using 'exec' makes fastify PID 1, so Docker signals (SIGINT/SIGTERM)
are delivered directly to the Node.js process instead of being lost
by the shell.
Closes #111 parent 4b81b1a commit 10a0438
2 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments