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.
This commit is contained in:
@@ -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).
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user