fix: preserve container startup diagnostics

This commit is contained in:
whyour committed 2026-08-18 00:40:40 +08:00
1 parent f71fd5ebd6
commit dfa73af104
7 files changed
+249 -33

No files matched your search

+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: '',