Skip to content

Commit bb2ae8b

Browse files
Ionut Tanasasilverbux
authored andcommitted
Automated .env config setup (silverbux#30)
* Adding command to copy .env.example to .env and generate an app key * Updating readme to reflect the changes that this PR brought * Fixing travis build.
1 parent 3be103f commit bb2ae8b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ Plus Oauth and JWT authentication on the side.
3131
$ composer install && npm install
3232
```
3333

34-
Copy ```.env.example``` to ```.env``` and enter necessary config for DB and Oauth Providers Settings.
34+
Open ```.env``` and enter necessary config for DB and Oauth Providers Settings.
3535

3636
```
3737
$ php artisan migrate
3838
$ php artisan db:seed
39-
$ php artisan key:generate
4039
```
4140

4241
## Work Flow

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
],
5050
"post-install-cmd": [
5151
"php artisan clear-compiled",
52-
"php artisan optimize"
52+
"php -r \"copy('.env.example', '.env');\"",
53+
"php artisan optimize",
54+
"php artisan key:generate"
5355
],
5456
"pre-update-cmd": [
5557
"php artisan clear-compiled"

0 commit comments

Comments
 (0)