Netlify deployment configuration for Perron
to run in your site's root directory
View 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
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.