Add app reboot

This commit is contained in:
David Heinemeier Hansson
2023-02-02 15:28:34 +01:00
parent 7494f08978
commit 7cc64299c8
2 changed files with 40 additions and 1 deletions

View File

@@ -18,7 +18,14 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
end
end
end
desc "reboot", "Reboot app on host (stop container, remove container, start new container)"
def reboot
stop
remove_container
boot
end
desc "start", "Start existing app on servers (use --version=<git-hash> to designate specific version)"
option :version, desc: "Defaults to the most recent git-hash in local repository"
def start