21 lines
710 B
Ruby
21 lines
710 B
Ruby
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: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" ]
|
|
|
|
desc "Rollback to VERSION=x that was already run as a container on servers"
|
|
task rollback: [ "app:restart" ]
|
|
|
|
desc "Display information about Traefik and app containers"
|
|
task info: [ "traefik:info", "app:info" ]
|
|
|
|
desc "Create config stub"
|
|
task :init do
|
|
Rails.root.join("config/deploy.yml")
|
|
end
|
|
end
|