Keep containers around for quick rollback + restarting
Now need to deal with pruning.
This commit is contained in:
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user