Skip to content

Commit

Permalink
try to fix log tailing
Browse files Browse the repository at this point in the history
per suggestions in #224
  • Loading branch information
CamJN committed Apr 23, 2024
1 parent eb7d2cb commit 96bcd97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions image/nginx-passenger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ run mkdir /var/run/passenger-instreg

run sed -i 's|invoke-rc.d nginx rotate|sv 1 nginx|' /etc/logrotate.d/nginx
run sed -i -e '/sv 1 nginx.*/a\' -e ' passenger-config reopen-logs >/dev/null 2>&1' /etc/logrotate.d/nginx
run rm -f /var/log/nginx/error.log

## Precompile Ruby extensions.
if [[ -e /usr/bin/ruby3.3 ]]; then
Expand Down

0 comments on commit 96bcd97

Please sign in to comment.