You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Defang monorepo we deploy to staging, and if successful we deploy to prod, but the latter deployment does not rebuild any images. We do this to ensure we actually end up using the images that were tested in staging. If we'd rebuild all services, we might have new surprises and the prod could fail even though staging passed.
When using the Defang CLI, there's not obvious way to do this. Deploying twice, defang up --mode staging followed by defang up --mode production --project-name defang-prod would result in two builds. We could overwrite the staging by not specifying --project-name, but this is also not exactly what we'd want, since it replaces the staging deployment.
The text was updated successfully, but these errors were encountered:
In Defang monorepo we deploy to staging, and if successful we deploy to prod, but the latter deployment does not rebuild any images. We do this to ensure we actually end up using the images that were tested in staging. If we'd rebuild all services, we might have new surprises and the prod could fail even though staging passed.
When using the Defang CLI, there's not obvious way to do this. Deploying twice,
defang up --mode staging
followed bydefang up --mode production --project-name defang-prod
would result in two builds. We could overwrite the staging by not specifying--project-name
, but this is also not exactly what we'd want, since it replaces the staging deployment.The text was updated successfully, but these errors were encountered: