Commit 1919f0f8 authored by Cameron Carney's avatar Cameron Carney

Logging updated, now displays in stdout/stderr

parent 90a1c30a
......@@ -94,7 +94,7 @@ function startServer {
/var/run/supervisor.d/
fi
exec supervisord --nodaemon
exec supervisord --nodaemon -c /etc/supervisord.conf
}
## Start ##
......
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
error_log /dev/stderr;
error_log /data/storage/logs/access.error.log;
pid /var/run/nginx.pid;
events {
......@@ -14,7 +15,8 @@ http {
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
access_log /dev/stdout main;
access_log /data/storage/logs/access.log main;
charset utf-8;
......
......@@ -13,9 +13,6 @@ server {
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /data/storage/logs/nginx.app-error.log error;
# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;
......
......@@ -29,9 +29,6 @@ server {
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /data/storage/logs/nginx.app-error.log error;
# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;
......
......@@ -5,3 +5,8 @@ autorestart=true
priority=10
stdout_events_enabled=true
stderr_events_enabled=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment