Skip to content

Modern Docker Management, Designed for Everyone

fix: rework project redeploy logic to use compose pull & compose up -d

Kyle Mendella5e377bee5f1
diff --git a/backend/internal/services/project_service.go b/backend/internal/services/project_service.go
index 914b9b32d..d6b0dd5cf 100644
--- a/backend/internal/services/project_service.go
+++ b/backend/internal/services/project_service.go
@@ -619,10 +619,6 @@ func (s *ProjectService) RedeployProject(ctx context.Context, projectID string,
slog.WarnContext(ctx, "failed to pull project images", "error", err)
}
- if err := s.DownProject(ctx, projectID, systemUser); err != nil {
- return fmt.Errorf("failed to down project for redeploy: %w", err)
- }
-
metadata := models.JSON{"action": "redeploy", "projectID": projectID, "projectName": proj.Name}
if logErr := s.eventService.LogProjectEvent(ctx, models.EventTypeProjectDeploy, projectID, proj.Name, user.ID, user.Username, "0", metadata); logErr != nil {
slog.ErrorContext(ctx, "could not log project redeploy action", "error", logErr)
diff --git a/frontend/messages/en.json b/frontend/messages/en.json
index 2b24b25c8..d3dfa668a 100644
--- a/frontend/messages/en.json
+++ b/frontend/messages/en.json
@@ -655,7 +655,7 @@
"compose_configuration_title": "Configuration",
"compose_name_change_not_allowed": "Project name cannot be changed while running. Please stop the project first.",
"compose_logs_title": "Project Logs",
- "compose_error_loading_stack_title": "Error Loading Stack",
+ "compose_error_loading_stack_title": "Error Loading Project",
"compose_not_found_title": "Project Not Found",
"compose_not_found_description": "Could not load Project data. It may have been removed or the Docker engine is not accessible.",
"compose_back_to_projects": "Back to Projects",
@@ -769,7 +769,7 @@
"confirm_remove_project_files": "Remove project files",
"confirm_remove_volumes_warning": "Remove volumes (Warning: Data will be lost)",
"action_confirm_redeploy_title": "Confirm Redeploy",
- "action_confirm_redeploy_message": "Are you sure you want to redeploy this stack? This will PULL, and RESTART the Project.",
+ "action_confirm_redeploy_message": "Are you sure you want to redeploy this project? This will pull the latest images and recreate containers as needed.",
"action_redeploy": "Redeploy",
"action_redeploy_success": "{type} Redeployed Successfully",
"action_started_success": "{type} Started Successfully",
@@ -1249,7 +1249,7 @@
"customize_button": "Customize",
"customize_more": "more",
"customize_category_defaults_description": "Configure default settings and templates for new projects",
- "customize_category_templates_description": "Create and manage custom project templates and stacks",
+ "customize_category_templates_description": "Create and manage custom project templates and projects",
"customize_category_registries_description": "Configure container registries and authentication",
"customize_category_variables_description": "Manage environment variables and configuration templates",
"customize_fallback_description": "Customize and configure application settings",