From 85d4833ce5de9a54f5d928cf4c4a7a239e9b19d3 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 28 Feb 2016 12:14:37 -0500 Subject: Add some environment variables --- .docker/php/conf.d/local.ini | 2 +- .docker/php/php-fpm.conf | 4 ++++ app/constants.php | 6 +++--- doc/docker.markdown | 12 ++++++++++++ doc/env.markdown | 11 +++++++++++ doc/index.markdown | 1 + 6 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 doc/env.markdown diff --git a/.docker/php/conf.d/local.ini b/.docker/php/conf.d/local.ini index 12d22cc6..77b6daf0 100644 --- a/.docker/php/conf.d/local.ini +++ b/.docker/php/conf.d/local.ini @@ -2,7 +2,7 @@ expose_php = Off error_reporting = E_ALL display_errors = Off log_errors = On -error_log = syslog +error_log = /dev/stderr date.timezone = UTC allow_url_fopen = On post_max_size = 30M diff --git a/.docker/php/php-fpm.conf b/.docker/php/php-fpm.conf index 0e5eab21..6a9c6459 100644 --- a/.docker/php/php-fpm.conf +++ b/.docker/php/php-fpm.conf @@ -5,6 +5,10 @@ daemonize = no [www] env[DATABASE_URL] = $DATABASE_URL +env[DEBUG] = $DEBUG +env[DEBUG_FILE] = $DEBUG_FILE + +catch_workers_output = yes user = nginx group = nginx listen.owner = nginx diff --git a/app/constants.php b/app/constants.php index 011fa784..4201e6e4 100644 --- a/app/constants.php +++ b/app/constants.php @@ -1,8 +1,8 @@