From b4df51b8b407eb3d6a84e52ba68cb73a6e61deda Mon Sep 17 00:00:00 2001 From: Igor Alexandrov Date: Sat, 12 Oct 2024 21:27:56 +0400 Subject: [PATCH] Added example how to read the Ruby version from the .ruby-version file. --- lib/kamal/cli/templates/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/kamal/cli/templates/deploy.yml b/lib/kamal/cli/templates/deploy.yml index cff7f0624..5a0d2cf14 100644 --- a/lib/kamal/cli/templates/deploy.yml +++ b/lib/kamal/cli/templates/deploy.yml @@ -16,8 +16,8 @@ servers: # Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server. # Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer. # -# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption. -proxy: +# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption. +proxy: ssl: true host: app.example.com # Proxy connects to your container on port 80 by default. @@ -36,6 +36,9 @@ registry: # Configure builder setup. builder: arch: amd64 + # Pass in additional build args needed for your Dockerfile. + # args: + # RUBY_VERSION: <%= File.read('.ruby-version').strip %> # Inject ENV variables into containers (secrets come from .kamal/secrets). #