异常退出删除.env

This commit is contained in:
吴彦文 2020-04-06 18:29:14 +08:00
parent 4271a70b16
commit e61f3a4115

View File

@ -283,6 +283,7 @@ class InstallProjectCommand extends Command
$this->output->warning(sprintf('create database %s failedyou need create database first by yourself', $database)); $this->output->warning(sprintf('create database %s failedyou 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);
} }