Skip to content

Commit

Permalink
Try zero-downtime deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Dec 22, 2023
1 parent 5fe0e89 commit 43c3c0d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions deploy/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ ln --symbolic --force \
compose.prod.yml \
compose.override.yml

# We have limited disk space in our deployment environment, so the app needs to
# go down, delete its image, download the new image, and start it back up.
# TODO: Zero-downtime deployments! More compact image!
docker compose down
docker compose up --pull "always" --detach

# Cleanup after; for a brief period, two copies of the image may be present.
docker system prune --all --force
docker compose up --detach

0 comments on commit 43c3c0d

Please sign in to comment.