From 0dcb1c89baf821145dc463737bc25f8abaf92ac7 Mon Sep 17 00:00:00 2001 From: CLN <7887972+cln-io@users.noreply.github.com> Date: Sun, 24 Sep 2023 14:07:43 +0200 Subject: [PATCH 1/2] Update .env.example to default to production since we copy it on install By default we should be on production, users can switch it to debug if they want, but users will just dump this download/install into their webservers so lets stick to safe defaults --- .env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index c3ed2a91b..b21a68612 100755 --- a/.env.example +++ b/.env.example @@ -1,7 +1,7 @@ APP_NAME=Laravel -APP_ENV=local +APP_ENV=production APP_KEY= -APP_DEBUG=true +APP_DEBUG=false APP_URL=http://localhost LOG_CHANNEL=stack From 97a78f3b51829e418c124d1892bd90a2b3ff28fe Mon Sep 17 00:00:00 2001 From: CLN <7887972+cln-io@users.noreply.github.com> Date: Sun, 24 Sep 2023 14:12:49 +0200 Subject: [PATCH 2/2] Update .env to productions too --- .env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 081f0d606..087cf3a50 100644 --- a/.env +++ b/.env @@ -40,9 +40,9 @@ ENABLE_BUTTON_EDITOR=true #Debug Settings=Changes if your page should display a full error description instead of a generic error 500. #=App_debug either true or false. You might want to change this to false after you're done installing, but it's very useful for troubleshooting. -APP_DEBUG=true +APP_DEBUG=false #=App_env either local or production. Change this to production if you set the value above to false. -APP_ENV=local +APP_ENV=production LOG_CHANNEL=stack LOG_LEVEL=debug #=Disables all routes and displays a Maintenance placeholder page.