Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Automated .env config setup (#30)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Ionut Tanasa authored and silverbux committed Jun 7, 2016
1 parent 3be103f commit bb2ae8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ Plus Oauth and JWT authentication on the side.
$ composer install && npm install
```

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

```
$ php artisan migrate
$ php artisan db:seed
$ php artisan key:generate
```

## Work Flow
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
],
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
"php -r \"copy('.env.example', '.env');\"",
"php artisan optimize",
"php artisan key:generate"
],
"pre-update-cmd": [
"php artisan clear-compiled"
Expand Down

0 comments on commit bb2ae8b

Please sign in to comment.