mirror of
https://github.com/bitinflow/bunny-cli.git
synced 2026-03-13 13:45:54 +00:00
Fix env:backup and env:restore
Build next version
This commit is contained in:
@@ -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.');
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class EnvRestoreCommand extends Command
|
||||
{
|
||||
$this->info(sprintf("The following environment file is used: '%s'", App::environmentFilePath()));
|
||||
|
||||
Storage::put('.env', Storage::get($this->argument('file')));
|
||||
Storage::put('.env', Storage::get(sprintf('backups/%s', $this->argument('file'))));
|
||||
|
||||
$this->info('The environment file was successfully restored.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user