terra-ops / docker-drupal

Dockerfile for enhanced drupal
5 stars 6 forks source link

How do you tail nginx error log? #5

Closed jlyon closed 9 years ago

jlyon commented 9 years ago

It sounds like this should work, but I don't see any errors (just the nginx access log entries)

docker logs drupallocal_app_1

I also tried, in www.conf, setting (from http://stackoverflow.com/questions/8677493/php-fpm-doesnt-write-to-error-log):

php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
catch_workers_output = yes

This didn't seem to write anything to /var/log/fpm-php.www.log when I ssh into the box.

I also tried removing the last line from Dockerfile:

&& \
  tail -f /var/log/php5-fpm.log

But this causes php-fpm to not load correctly.

I'll keep trying to poke around on this.

jlyon commented 9 years ago

Scratch that, it does look like docker logs drupallocal_app_1 shows the most recent error log entries. This is probably the best way to go about this.