Skip to content

Commit

Permalink
fix: environnement setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eliseekn committed Oct 14, 2021
1 parent d9debb3 commit f62522d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ yarn && yarn build

On your terminal:
```
cp .env.example .env
php console app:setup
```
2\. Setup database
Expand Down
6 changes: 4 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ function handleExceptions($e)

Route::load();

if (Storage::path()->isFile('.env')) Config::loadEnv();
if (!Storage::path()->isFile('.env')) {
throw new Exception('Copy ".env.example" file to ".env" then edit or run "php console app:setup" console command to setup application');
}

throw new Exception('Copy ".env.example" file to ".env" then edit or run "php console app:setup" console command to setup application');
Config::loadEnv();

0 comments on commit f62522d

Please sign in to comment.