合并分支 'akun' 到 'master'
Akun 查看合并请求 !852
正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -64,6 +64,10 @@ class ProjectServer | @@ -64,6 +64,10 @@ class ProjectServer | ||
| 64 | // 设置 database.connections.custom_mysql 配置 | 64 | // 设置 database.connections.custom_mysql 配置 |
| 65 | config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]); | 65 | config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]); |
| 66 | config(['database.connections.custom_mysql.port' => $project->mysqlConfig->port]); | 66 | config(['database.connections.custom_mysql.port' => $project->mysqlConfig->port]); |
| 67 | + if(env('SERVER_ID') == 7){ | ||
| 68 | + config(['database.connections.custom_mysql.host' => env('DB_HOST')]); | ||
| 69 | + config(['database.connections.custom_mysql.port' => env('DB_PORT')]); | ||
| 70 | + } | ||
| 67 | config(['database.connections.custom_mysql.database' => $project->databaseName()]); | 71 | config(['database.connections.custom_mysql.database' => $project->databaseName()]); |
| 68 | config(['database.connections.custom_mysql.username' => $project->mysqlConfig->user]); | 72 | config(['database.connections.custom_mysql.username' => $project->mysqlConfig->user]); |
| 69 | config(['database.connections.custom_mysql.password' => $project->mysqlConfig->password]); | 73 | config(['database.connections.custom_mysql.password' => $project->mysqlConfig->password]); |
-
请 注册 或 登录 后发表评论