异常退出删除.env
This commit is contained in:
parent
4271a70b16
commit
e61f3a4115
@ -283,6 +283,7 @@ class InstallProjectCommand extends Command
|
|||||||
$this->output->warning(sprintf('create database %s failed,you need create database first by yourself', $database));
|
$this->output->warning(sprintf('create database %s failed,you need create database first by yourself', $database));
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
unlink(root_path() . '.env');
|
||||||
$this->output->error($e->getMessage());
|
$this->output->error($e->getMessage());
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user