Keep containers around for quick rollback + restarting

Now need to deal with pruning.
This commit is contained in:
David Heinemeier Hansson
2023-01-08 11:45:46 +01:00
parent e8fc046537
commit 73019bedfb
4 changed files with 22 additions and 7 deletions

View File

@@ -2,10 +2,12 @@ require_relative "setup"
namespace :mrsk do
desc "Deploy app for the first time to a fresh server"
task fresh: [ "server:bootstrap", "registry:login", "app:deliver", "traefik:start", "app:start" ]
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:restart" ]
task deploy: [ "registry:login", "app:deliver", "traefik:start", "app:stop", "app:run" ]
task rollback: [ "app:restart" ]
desc "Display information about Traefik and app containers"
task info: [ "traefik:info", "app:info" ]