Add --reset-db flag to phpvms:dev-install command #176
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user