fix: restore docker middleware env config

This commit is contained in:
richjohnrambo
2026-09-14 23:52:00 +08:00
parent 5384a8fa7b
commit 0cf2fb61a7
2 changed files with 53 additions and 47 deletions
+7 -1
View File
@@ -185,5 +185,11 @@ fi
args=("--config=${CONFIG}" "--static_data=$STATIC_DIR" "--cluster_self=$CLUSTER_SELF" "--pprof_url=$PPROF_URL")
# Run the tinode server.
# Run the tinode server. Mirror the captured stderr to container logs on exit so
# CrashLoopBackOff pods expose the actual startup failure via kubectl logs.
./tinode "${args[@]}" 2>> /var/log/tinode.log
status=$?
if [ "$status" -ne 0 ] && [ -s /var/log/tinode.log ]; then
tail -200 /var/log/tinode.log >&2
fi
exit "$status"