fix: restore docker middleware env config
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user