Backup the .env if BACKUP_ENV is set to true

This commit is contained in:
snipe 2018-02-26 18:12:48 -08:00
parent e3fb4f8799
commit 2dd56f5bda
2 changed files with 2 additions and 0 deletions

View file

@ -105,3 +105,4 @@ APP_TRUSTED_PROXIES=192.168.1.1,10.0.0.1
ALLOW_IFRAMING=false
APP_CIPHER=AES-256-CBC
GOOGLE_MAPS_API=
BACKUP_ENV=true

View file

@ -24,6 +24,7 @@ return [
base_path('storage/private_uploads'),
base_path('storage/oauth-private.key'),
base_path('storage/oauth-public.key'),
(env('BACKUP_ENV')=='true') ? base_path('.env') : '',
],
/*