Disable DB access since there's no DB yet; add environmental site status variables

This commit is contained in:
Alex Cabal 2021-12-11 13:53:16 -06:00
parent c48cdf9b10
commit 05a125258e
3 changed files with 5 additions and 1 deletions

View file

@ -16,3 +16,5 @@ slowlog = /var/log/local/php-fpm-slow.log
catch_workers_output = yes catch_workers_output = yes
php_admin_value[include_path] = /standardebooks.org/web/lib php_admin_value[include_path] = /standardebooks.org/web/lib
env[SITE_STATUS] = "live"

View file

@ -16,3 +16,5 @@ slowlog = /var/log/local/php-fpm-slow.log
catch_workers_output = yes catch_workers_output = yes
php_admin_value[include_path] = /standardebooks.org/web/lib:/standardebooks.org/web/vendor php_admin_value[include_path] = /standardebooks.org/web/lib:/standardebooks.org/web/vendor
env[SITE_STATUS] = "dev"

View file

@ -25,4 +25,4 @@ set_exception_handler(function(Throwable $ex): void{
throw $ex; // Send the exception back to PHP for its usual logging routine. 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);