Nicer name for CLI

This commit is contained in:
David Heinemeier Hansson
2023-01-12 18:50:18 +01:00
parent b3992973d6
commit 5afadb10ca
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
require_relative "setup" require_relative "setup"
namespace :mrsk do namespace :mrsk do
namespace :builder do namespace :build do
desc "Deliver a newly built app image to servers" desc "Deliver a newly built app image to servers"
task deliver: %i[ push pull ] task deliver: %i[ push pull ]

View File

@@ -2,10 +2,10 @@ require_relative "setup"
namespace :mrsk do namespace :mrsk do
desc "Deploy app for the first time to a fresh server" desc "Deploy app for the first time to a fresh server"
task fresh: %w[ server:bootstrap registry:login builder:deliver traefik:run app:stop app:run ] task fresh: %w[ server:bootstrap registry:login build:deliver traefik:run app:stop app:run ]
desc "Push the latest version of the app, ensure Traefik is running, then restart app" desc "Push the latest version of the app, ensure Traefik is running, then restart app"
task deploy: %w[ registry:login builder:deliver traefik:run app:stop app:run prune ] task deploy: %w[ registry:login build:deliver traefik:run app:stop app:run prune ]
desc "Rollback to VERSION=x that was already run as a container on servers" desc "Rollback to VERSION=x that was already run as a container on servers"
task rollback: %w[ app:restart ] task rollback: %w[ app:restart ]