From 02df7844a432f577ff06ea4c365072041e2154ca Mon Sep 17 00:00:00 2001 From: KodeStar Date: Fri, 4 Jan 2019 10:34:12 +0000 Subject: [PATCH 1/3] Update .env.example --- .env.example | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index cd06cc8d..b6764afc 100644 --- a/.env.example +++ b/.env.example @@ -1,16 +1,11 @@ -APP_NAME=Laravel +APP_NAME=Heimdall APP_ENV=local -APP_KEY= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://localhost -DB_CONNECTION=mysql -DB_HOST=127.0.0.1 -DB_PORT=3306 -DB_DATABASE=homestead -DB_USERNAME=homestead -DB_PASSWORD=secret +DB_CONNECTION=sqlite +DB_DATABASE=app.sqlite BROADCAST_DRIVER=log CACHE_DRIVER=file From c073929895f49d4e1087f3c7229643bf88a0228c Mon Sep 17 00:00:00 2001 From: KodeStar Date: Fri, 4 Jan 2019 10:36:04 +0000 Subject: [PATCH 2/3] Delete .env --- .env | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index f20cdf81..00000000 --- a/.env +++ /dev/null @@ -1,31 +0,0 @@ -APP_NAME=Heimdall -APP_ENV=local -APP_KEY=base64:I206O8ibx+GQyRE7BeOxDobn04Mfmyyc5Ptzns/C0mY= -APP_DEBUG=true -APP_LOG_LEVEL=debug -APP_URL=http://localhost - -DB_CONNECTION=sqlite -DB_DATABASE=app.sqlite - -BROADCAST_DRIVER=log -CACHE_DRIVER=file -SESSION_DRIVER=file -SESSION_LIFETIME=120 -QUEUE_DRIVER=sync - -REDIS_HOST=127.0.0.1 -REDIS_PASSWORD=null -REDIS_PORT=6379 - -MAIL_DRIVER=smtp -MAIL_HOST=smtp.mailtrap.io -MAIL_PORT=2525 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_ENCRYPTION=null - -PUSHER_APP_ID= -PUSHER_APP_KEY= -PUSHER_APP_SECRET= -PUSHER_APP_CLUSTER=mt1 \ No newline at end of file From f42ac0c5bacfb861cef6427d5a35d59b0dfba59d Mon Sep 17 00:00:00 2001 From: KodeStar Date: Fri, 4 Jan 2019 10:38:07 +0000 Subject: [PATCH 3/3] if .env is missing copy example and generate key --- app/Providers/AppServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 28ad5c27..072fa3f7 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -21,7 +21,7 @@ class AppServiceProvider extends ServiceProvider { if(!is_file(base_path('.env'))) { - touch(base_path('.env')); + copy(base_path('.env.example'), base_path('.env')); Artisan::call('key:generate'); } if(!is_file(database_path('app.sqlite'))) {