Added example how to read the Ruby version from the .ruby-version file.

This commit is contained in:
Igor Alexandrov
2024-10-12 21:27:56 +04:00
parent bf79c7192f
commit b4df51b8b4

View File

@@ -16,8 +16,8 @@ servers:
# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server. # 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. # 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. # Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
proxy: proxy:
ssl: true ssl: true
host: app.example.com host: app.example.com
# Proxy connects to your container on port 80 by default. # Proxy connects to your container on port 80 by default.
@@ -36,6 +36,9 @@ registry:
# Configure builder setup. # Configure builder setup.
builder: builder:
arch: amd64 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). # Inject ENV variables into containers (secrets come from .kamal/secrets).
# #