Fix env:backup and env:restore

Build next version
This commit is contained in:
René Preuß
2021-07-24 13:42:17 +02:00
parent c90ad43a3c
commit efeda239d7
5 changed files with 75 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class EnvBackupCommand extends Command
{
$this->info(sprintf("The following environment file is used: '%s'", App::environmentFilePath()));
Storage::put($this->argument('file'), Storage::get('.env'));
Storage::put(sprintf('backups/%s', $this->argument('file')), Storage::get('.env'));
$this->info('The environment file was successfully backed up.');