Set default env name to "production" and debug to false
This commit is contained in:
@@ -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' => '',
|
||||
|
||||
@@ -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,
|
||||
],
|
||||
|
||||
|
||||
@@ -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$
|
||||
|
||||
Reference in New Issue
Block a user