Distinguish run from start

This commit is contained in:
David Heinemeier Hansson
2023-01-08 15:13:45 +01:00
parent d4210b66d0
commit 3ddf2b9c41
2 changed files with 8 additions and 3 deletions

View File

@@ -2,10 +2,10 @@ 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" ]
task fresh: [ "server:bootstrap", "registry:login", "app:deliver", "traefik:run", "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", "prune" ]
task deploy: [ "registry:login", "app:deliver", "traefik:run", "app:stop", "app:run", "prune" ]
desc "Rollback to VERSION=x that was already run as a container on servers"
task rollback: [ "app:restart" ]