fix: preserve container startup diagnostics

This commit is contained in:
whyour
2026-08-18 00:40:40 +08:00
parent f71fd5ebd6
commit dfa73af104
7 changed files with 249 additions and 33 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ module.exports = {
source_map_support: true,
time: !isContainer,
out_file: isContainer ? '/dev/null' : undefined,
error_file: isContainer ? '/dev/null' : undefined,
// Do not persist PM2 logs in containers, but keep early startup errors
// visible through `docker logs` before Winston is initialized.
error_file: isContainer ? '/proc/1/fd/2' : undefined,
script: 'static/build/app.js',
env: {
http_proxy: '',