Backup the .env if BACKUP_ENV is set to true
This commit is contained in:
parent
e3fb4f8799
commit
2dd56f5bda
2 changed files with 2 additions and 0 deletions
|
@ -105,3 +105,4 @@ APP_TRUSTED_PROXIES=192.168.1.1,10.0.0.1
|
||||||
ALLOW_IFRAMING=false
|
ALLOW_IFRAMING=false
|
||||||
APP_CIPHER=AES-256-CBC
|
APP_CIPHER=AES-256-CBC
|
||||||
GOOGLE_MAPS_API=
|
GOOGLE_MAPS_API=
|
||||||
|
BACKUP_ENV=true
|
||||||
|
|
|
@ -24,6 +24,7 @@ return [
|
||||||
base_path('storage/private_uploads'),
|
base_path('storage/private_uploads'),
|
||||||
base_path('storage/oauth-private.key'),
|
base_path('storage/oauth-private.key'),
|
||||||
base_path('storage/oauth-public.key'),
|
base_path('storage/oauth-public.key'),
|
||||||
|
(env('BACKUP_ENV')=='true') ? base_path('.env') : '',
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue