caddy lables
This commit is contained in:
@@ -200,8 +200,10 @@ export class ProjectService {
|
||||
}
|
||||
|
||||
// Обновить конфигурацию (сохранить измененные домены и порты)
|
||||
updateProjectConfig(projectId: string, config: ProjectConfig): Observable<ProjectConfig> {
|
||||
return this.http.put<ProjectConfig>(`${this.baseUrl}/user/projects/${projectId}/config`, config);
|
||||
updateProjectConfig(projectId: string, config: ProjectConfig): Observable<string> {
|
||||
return this.http.put(`${this.baseUrl}/user/projects/${projectId}/config`, config, {
|
||||
responseType: 'text'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -152,6 +152,7 @@ public class ProjectService {
|
||||
assert config != null;
|
||||
String finalComposeContent = injectCaddyLabels(config.getRawComposeContent(), config);
|
||||
|
||||
logToConsole(projectId, finalComposeContent);
|
||||
try {
|
||||
Files.createDirectories(projectPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user