Deploying a Ruby on Rails application is straight-forward. We have a native Ruby environment which comes with Ruby and Nginx by default. You can specify the Ruby version in the nodion.yml file, as well as some other settings. You can run bundle
as well as things like rails db:migrate
as build_command
. You can also specify a path to a bash script to keep the build_command
clean. Afterwards you can start your Rails app with the start_command
.
nodion:
env: ruby
version: 2.7.5
build_command: bundle
start_command: puma -e production
nodion:
env: ruby
version: 2.7.5
build_command: bundle
start_command: puma -e production
publish_dir: /public