mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-10 18:32:41 +01:00
Remove /etc/cont-init.d ties to nlss/php-nginx:7.4 image
This commit is contained in:
12
rootfs/etc/cont-init.d/20-nginx-log-stream
Executable file
12
rootfs/etc/cont-init.d/20-nginx-log-stream
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
set -e
|
||||
|
||||
echo "Redirecting nginx logs to output streams..."
|
||||
|
||||
# General logs
|
||||
ln -sf /dev/stdout /var/log/nginx/access.log
|
||||
ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
# App specific logs
|
||||
ln -sf /dev/stdout /var/log/nginx/app-access.log
|
||||
ln -sf /dev/stderr /var/log/nginx/app-error.log
|
||||
Reference in New Issue
Block a user