fix proxy bugs
This commit is contained in:
@@ -53,6 +53,7 @@ func (s *FluxServer) UpgradeDeployment(ctx context.Context, deploymentID int64,
|
||||
return err
|
||||
}
|
||||
|
||||
// calls AddContainer in proxy
|
||||
err = s.containerManager.StartContainer(ctx, containerID)
|
||||
if err != nil {
|
||||
log.Printf("Failed to start container: %v\n", err)
|
||||
@@ -64,8 +65,6 @@ func (s *FluxServer) UpgradeDeployment(ctx context.Context, deploymentID int64,
|
||||
return err
|
||||
}
|
||||
|
||||
s.Proxy.AddContainer(projectConfig, containerID)
|
||||
|
||||
s.db.Exec("INSERT INTO containers (container_id, deployment_id) VALUES (?, ?)", containerID, deploymentID)
|
||||
|
||||
// update app in the database
|
||||
|
||||
Reference in New Issue
Block a user