From 0f5dfa204f0f8e96023075f9ae19b82f66fb7609 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 23 Sep 2024 16:44:54 -0700 Subject: [PATCH] Rearrange one last time --- lib/kamal/cli/templates/deploy.yml | 43 +++++++++++++----------------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/lib/kamal/cli/templates/deploy.yml b/lib/kamal/cli/templates/deploy.yml index cf8d752b..7eec6aa2 100644 --- a/lib/kamal/cli/templates/deploy.yml +++ b/lib/kamal/cli/templates/deploy.yml @@ -2,7 +2,7 @@ service: my-app # Name of the container image. -image: user/my-app +image: my-user/my-app # Deploy to these servers. servers: @@ -25,7 +25,7 @@ registry: # server: registry.digitalocean.com / ghcr.io / ... username: my-user - # Always use an access token rather than real password when possible. + # Always use an access token rather than real password (pulled from .kamal/secrets). password: - KAMAL_REGISTRY_PASSWORD @@ -47,16 +47,28 @@ builder: # aliases: # shell: app exec --interactive --reuse "bash" -# Use a persistent storage volume. -# -# volumes: -# - "app_storage:/rails/storage" - # Use a different ssh user than root # # ssh: # user: app +# Use a persistent storage volume. +# +# volumes: +# - "app_storage:/app/storage" + +# Bridge fingerprinted assets, like JS and CSS, between versions to avoid +# hitting 404 on in-flight requests. Combines all files from new and old +# version inside the asset_path. +# +# asset_path: /app/public/assets + +# Configure rolling deploys by setting a wait time between batches of restarts. +# +# boot: +# limit: 10 # Can also specify as a percentage of total hosts, such as "25%" +# wait: 2 + # Use accessory services (secrets come from .kamal/secrets). # # accessories: @@ -80,20 +92,3 @@ builder: # port: 6379 # directories: # - data:/data - -# Bridge fingerprinted assets, like JS and CSS, between versions to avoid -# hitting 404 on in-flight requests. Combines all files from new and old -# version inside the asset_path. -# -# asset_path: /rails/public/assets - -# Configure rolling deploys by setting a wait time between batches of restarts. -# -# boot: -# limit: 10 # Can also specify as a percentage of total hosts, such as "25%" -# wait: 2 - -# Configure the role used to determine the primary_host. This host takes -# deploy locks, runs health checks during the deploy, and follow logs, etc. -# -# primary_role: web