diff --git a/README.md b/README.md index 4ed13cf4..b54d89a7 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ This will: 5. Ensure Traefik is running and accepting traffic on port 80. 6. Stop any containers running a previous versions of the app. 7. Start a new container with the version of the app that matches the current git version hash. +8. Prune unused images and stopped containers to ensure servers don't fill up. Voila! All the servers are now serving the app on port 80, and you're ready to put them behind a load balancer to serve live traffic. diff --git a/lib/tasks/mrsk/mrsk.rake b/lib/tasks/mrsk/mrsk.rake index 3ef4167d..113e69c4 100644 --- a/lib/tasks/mrsk/mrsk.rake +++ b/lib/tasks/mrsk/mrsk.rake @@ -5,7 +5,7 @@ namespace :mrsk do task fresh: [ "server:bootstrap", "registry:login", "app:deliver", "traefik:start", "app:stop", "app:run" ] desc "Push the latest version of the app, ensure Traefik is running, then restart app" - task deploy: [ "registry:login", "app:deliver", "traefik:start", "app:stop", "app:run" ] + task deploy: [ "registry:login", "app:deliver", "traefik:start", "app:stop", "app:run", "prune" ] desc "Rollback to VERSION=x that was already run as a container on servers" task rollback: [ "app:restart" ]