Render.com deployment configuration for Perron
rails app:template LOCATION='https://perron.railsdesigner.com/resources/render/template.rb/'
This snippet adds the configuration file for Render.com deployments. The render.yaml
file defines how your Perron-powered site should be built and deployed on Render. It specifies the service type, build command, output directory, and environment variables including Ruby version and build environment.
Template source
create_file "render.yaml", <<~YAML services: - type: static name: my-perron-site buildCommand: bin/rails perron:build staticPublishPath: ./output envVars: - key: RAILS_ENV value: production - key: RUBY_VERSION value: 3.4.5 headers: - path: /* name: X-Frame-Options value: SAMEORIGIN routes: - type: rewrite source: /* destination: /index.html YAML