|
...
|
...
|
@@ -64,6 +64,10 @@ class ProjectServer |
|
|
|
// 设置 database.connections.custom_mysql 配置
|
|
|
|
config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]);
|
|
|
|
config(['database.connections.custom_mysql.port' => $project->mysqlConfig->port]);
|
|
|
|
if(env('SERVER_ID') == 7){
|
|
|
|
config(['database.connections.custom_mysql.host' => env('DB_HOST')]);
|
|
|
|
config(['database.connections.custom_mysql.port' => env('DB_PORT')]);
|
|
|
|
}
|
|
|
|
config(['database.connections.custom_mysql.database' => $project->databaseName()]);
|
|
|
|
config(['database.connections.custom_mysql.username' => $project->mysqlConfig->user]);
|
|
|
|
config(['database.connections.custom_mysql.password' => $project->mysqlConfig->password]);
|
...
|
...
|
|