优化install
This commit is contained in:
parent
8d10baa35f
commit
56f6ba90a6
@ -160,7 +160,7 @@ class InstallProjectCommand extends Command
|
|||||||
if (!$this->databaseLink) {
|
if (!$this->databaseLink) {
|
||||||
unlink($this->getEnvFilePath());
|
unlink($this->getEnvFilePath());
|
||||||
$this->execute($this->input, $this->output);
|
$this->execute($this->input, $this->output);
|
||||||
}
|
} else {
|
||||||
|
|
||||||
[
|
[
|
||||||
$connections['mysql']['hostname'],
|
$connections['mysql']['hostname'],
|
||||||
@ -170,7 +170,7 @@ class InstallProjectCommand extends Command
|
|||||||
$connections['mysql']['hostport'],
|
$connections['mysql']['hostport'],
|
||||||
$connections['mysql']['charset'],
|
$connections['mysql']['charset'],
|
||||||
$connections['mysql']['prefix'],
|
$connections['mysql']['prefix'],
|
||||||
] = $this->databaseLink ? : [
|
] = $this->databaseLink ?: [
|
||||||
env('mysql.hostname')
|
env('mysql.hostname')
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -181,6 +181,7 @@ class InstallProjectCommand extends Command
|
|||||||
$this->migrateAndSeeds();
|
$this->migrateAndSeeds();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成表结构
|
* 生成表结构
|
||||||
|
Loading…
x
Reference in New Issue
Block a user