From 05a125258e1cc79f6a1adec5d519eca3e77f583e Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sat, 11 Dec 2021 13:53:16 -0600 Subject: [PATCH] Disable DB access since there's no DB yet; add environmental site status variables --- config/php/fpm/standardebooks.org.conf | 2 ++ config/php/fpm/standardebooks.test.conf | 2 ++ lib/Core.php | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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);