statichost.eu
to run in your site's root directory
View template source
gem "perron" unless File.read("Gemfile").include?("perron")
after_bundle do
unless File.exist?("config/initializers/perron.rb")
rails_command "perron:install"
end
create_file "statichost.yml", <<~YAML
image: ruby:3.4
command: bundle install && RAILS_ENV=production bin/rails perron:build
public: output
YAML
end
This snippet adds a configuration file for Statichost deployments. The statichost.yml file defines how your site should be built and deployed on Statichost. It specifies the Ruby container image, a custom build command and sets the output directory.
Use
PERRONSITEon check out to get 50% off for three months