|
@@ -32,8 +32,9 @@ class ProjectServer extends BaseService |
|
@@ -32,8 +32,9 @@ class ProjectServer extends BaseService |
|
32
|
if(!$project->mysqlConfig){
|
32
|
if(!$project->mysqlConfig){
|
|
33
|
return false;
|
33
|
return false;
|
|
34
|
}
|
34
|
}
|
|
35
|
- // 设置 database.connections.custom_mysql 配置
|
|
|
|
36
|
$encrypt = new EncryptUtils();
|
35
|
$encrypt = new EncryptUtils();
|
|
|
|
36
|
+ @file_put_contents(storage_path('logs/lyh_error.log'), var_export($encrypt->unlock_url($project->mysqlConfig->port), true) . PHP_EOL, FILE_APPEND);
|
|
|
|
37
|
+ // 设置 database.connections.custom_mysql 配置
|
|
37
|
config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]);
|
38
|
config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]);
|
|
38
|
config(['database.connections.custom_mysql.port' => (int)$encrypt->unlock_url($project->mysqlConfig->port)]);
|
39
|
config(['database.connections.custom_mysql.port' => (int)$encrypt->unlock_url($project->mysqlConfig->port)]);
|
|
39
|
config(['database.connections.custom_mysql.database' => $project->databaseName()]);
|
40
|
config(['database.connections.custom_mysql.database' => $project->databaseName()]);
|