From 34050f1036cb7a8d970bc2777dfad21f18fbd034 Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Mon, 20 Jan 2025 14:26:43 +0000 Subject: [PATCH] Don't read a file in sample deploy.yml The ERB runs first so it does matter if it in a comment. If the file doesn't exist (e.g. if not using Ruby, you'll get an error). We'll change the example to match the Rails deploy.yml template won't have than problem. --- lib/kamal/cli/templates/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kamal/cli/templates/deploy.yml b/lib/kamal/cli/templates/deploy.yml index 89104ad3c..dd59bc81a 100644 --- a/lib/kamal/cli/templates/deploy.yml +++ b/lib/kamal/cli/templates/deploy.yml @@ -38,7 +38,7 @@ builder: arch: amd64 # Pass in additional build args needed for your Dockerfile. # args: - # RUBY_VERSION: <%= File.read('.ruby-version').strip %> + # RUBY_VERSION: <%= ENV["RBENV_VERSION"] || ENV["rvm_ruby_string"] || "#{RUBY_ENGINE}-#{RUBY_ENGINE_VERSION}" %> # Inject ENV variables into containers (secrets come from .kamal/secrets). #