T350: Added encrypted production and stage configs, updated the cache driver, and moved the .env.example file to the resources directory.

This commit is contained in:
Peter Deltchev 2015-09-12 15:35:40 -07:00
parent d3a79b2a74
commit eb3c88b1e1
11 changed files with 11 additions and 4 deletions

3
.git-crypt/.gitattributes vendored Normal file
View file

@ -0,0 +1,3 @@
# Do not edit this file. To specify the files to encrypt, create your own
# .gitattributes file in the directory where your files are.
* !filter !diff

4
.gitattributes vendored
View file

@ -1,3 +1,7 @@
* text=auto
resources/environments/.env.stage filter=git-crypt diff=git-crypt
resources/environments/.env.production filter=git-crypt diff=git-crypt
*.css linguist-vendored
*.less linguist-vendored

View file

@ -13,7 +13,7 @@ return [
|
*/
'default' => env('CACHE_DRIVER', 'file'),
'default' => env('CACHE_DRIVER', 'database'),
/*
|--------------------------------------------------------------------------

View file

@ -1,5 +1,6 @@
APP_ENV=local
APP_DEBUG=true
APP_URL=http://pony.fm.local/
APP_KEY=SomeRandomString
DB_HOST=localhost
@ -7,7 +8,6 @@ DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

View file

@ -1,5 +1,6 @@
APP_ENV=local
APP_DEBUG=true
APP_URL=http://pony.fm.local/
APP_KEY=AQUSDTDK5xA04yb9eO9iwlm72NpC8e90
DB_HOST=localhost
@ -7,7 +8,6 @@ DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

Binary file not shown.

Binary file not shown.

View file

@ -31,7 +31,7 @@ cd /vagrant
/usr/local/bin/composer self-update
composer install
cp "/vagrant/vagrant/.env.local" "/vagrant/.env"
cp "/vagrant/resources/environments/.env.local" "/vagrant/.env"
php artisan migrate
php artisan db:seed