diff --git a/config/php/fpm/standardebooks.org.conf b/config/php/fpm/standardebooks.org.conf index e7867cec..dcc06c65 100644 --- a/config/php/fpm/standardebooks.org.conf +++ b/config/php/fpm/standardebooks.org.conf @@ -16,3 +16,5 @@ slowlog = /var/log/local/php-fpm-slow.log catch_workers_output = yes php_admin_value[include_path] = /standardebooks.org/web/lib + +env[SITE_STATUS] = "live" diff --git a/config/php/fpm/standardebooks.test.conf b/config/php/fpm/standardebooks.test.conf index 230c05f3..a80d6eb4 100644 --- a/config/php/fpm/standardebooks.test.conf +++ b/config/php/fpm/standardebooks.test.conf @@ -16,3 +16,5 @@ slowlog = /var/log/local/php-fpm-slow.log catch_workers_output = yes php_admin_value[include_path] = /standardebooks.org/web/lib:/standardebooks.org/web/vendor + +env[SITE_STATUS] = "dev" diff --git a/lib/Core.php b/lib/Core.php index eb8e2b06..f98755c2 100644 --- a/lib/Core.php +++ b/lib/Core.php @@ -25,4 +25,4 @@ set_exception_handler(function(Throwable $ex): void{ throw $ex; // Send the exception back to PHP for its usual logging routine. }); -$GLOBALS['DbConnection'] = new DbConnection(DATABASE_DEFAULT_DATABASE, DATABASE_DEFAULT_HOST); +#$GLOBALS['DbConnection'] = new DbConnection(DATABASE_DEFAULT_DATABASE, DATABASE_DEFAULT_HOST);