Netlify deployment configuration for Perron

rails app:template LOCATION='https://perron.railsdesigner.com/resources/netlify/template.rb/'

This snippet adds a configuration file for Netlify deployments. The netlify.toml file defines how your site should be built and deployed on Netlify. It specifies a custom build command, sets the output directory, and configures environment variables including the Ruby version and Rails environment.

Template source

create_file "netlify.toml", <<~TOML
[build]
  command = "bin/rails perron:build"

  publish = "output"

  [build.environment]
    RAILS_ENV = "production"

    RUBY_VERSION = "3.4.5"
TOML