Add --reset-db flag to phpvms:dev-install command #176

This commit is contained in:
Nabeel Shahzad
2018-02-09 17:16:52 -06:00
parent d94294e3f6
commit 936bceba5d

View File

@@ -11,7 +11,7 @@ use Modules\Installer\Services\ConfigService;
*/ */
class DevInstall extends BaseCommand class DevInstall extends BaseCommand
{ {
protected $signature = 'phpvms:dev-install'; protected $signature = 'phpvms:dev-install {--reset-db}';
protected $description = 'Run a developer install and run the sample migration'; protected $description = 'Run a developer install and run the sample migration';
/** /**
@@ -20,7 +20,9 @@ class DevInstall extends BaseCommand
*/ */
public function handle() public function handle()
{ {
$this->rewriteConfigs(); if(!$this->option('reset-db')) {
$this->rewriteConfigs();
}
# Reload the configuration # Reload the configuration
\App::boot(); \App::boot();