Set default env name to "production" and debug to false

This commit is contained in:
Nabeel Shahzad
2021-05-29 18:13:36 -04:00
parent a2f91b6754
commit 97f095e4e9
3 changed files with 7 additions and 5 deletions

View File

@@ -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' => '',

View File

@@ -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,
],

View File

@@ -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$