From 97f095e4e98d1895475c3c28e88841e6a5f2dab5 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sat, 29 May 2021 18:13:36 -0400 Subject: [PATCH] Set default env name to "production" and debug to false --- app/Services/Installer/ConfigService.php | 4 ++-- resources/stubs/installer/config.stub | 4 ++-- resources/stubs/installer/env.stub | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/Services/Installer/ConfigService.php b/app/Services/Installer/ConfigService.php index 36fac416..2c6f385a 100644 --- a/app/Services/Installer/ConfigService.php +++ b/app/Services/Installer/ConfigService.php @@ -16,9 +16,9 @@ use Symfony\Component\HttpFoundation\File\Exception\FileException; class ConfigService extends Service { protected static $defaultValues = [ - 'APP_ENV' => 'prod', + 'APP_ENV' => 'production', 'APP_KEY' => '', - 'APP_DEBUG' => true, + 'APP_DEBUG' => false, 'APP_LOCALE' => 'en', 'DEBUG_TOOLBAR' => false, 'SITE_NAME' => '', diff --git a/resources/stubs/installer/config.stub b/resources/stubs/installer/config.stub index ca6d5923..207a1601 100644 --- a/resources/stubs/installer/config.stub +++ b/resources/stubs/installer/config.stub @@ -13,11 +13,11 @@ return [ 'url' => '$APP_URL$', // When live, 'env' should be 'prod' - 'env' => 'prod', + 'env' => 'production', // debug as true shows the Laravel debug bar, which is helpful for // debugging templates and other internals - 'debug' => true, + 'debug' => false, 'debug_toolbar' => false, ], diff --git a/resources/stubs/installer/env.stub b/resources/stubs/installer/env.stub index f9480caa..127a600e 100644 --- a/resources/stubs/installer/env.stub +++ b/resources/stubs/installer/env.stub @@ -16,8 +16,10 @@ APP_KEY='$APP_KEY$' APP_NAME='$SITE_NAME$' SITE_NAME='$SITE_NAME$' APP_URL='$APP_URL$' -APP_ENV=$APP_ENV$ APP_LOCALE=$APP_LOCALE$ + +# When live, this should be "production". If testing locally, you can use "local" +APP_ENV=$APP_ENV$ LOG_LEVEL=debug APP_DEBUG=$APP_DEBUG$ DEBUG_TOOLBAR=$DEBUG_TOOLBAR$