From 33e8e9ae818a304d6aed64a6fde6305ea906b144 Mon Sep 17 00:00:00 2001 From: Artan Sadiku <artan.sadiku@he-arc.ch> Date: Wed, 1 May 2024 09:30:49 +0200 Subject: [PATCH] - Redirected logs to console --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index edff232..1bf290d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,5 +30,9 @@ uwsgi --socket=lustraDjangoApp.sock \ --max-requests=5000 \ --daemonize=/var/log/lustraDjangoAp_uwsgi.log # -> Removing this will make it a foreground process +# Redirect access and error logs on stdout and stderr +# https://serverfault.com/a/634296 +ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log + # Start NGINX as a foreground process nginx -g 'daemon off;' \ No newline at end of file -- GitLab