Ruby on Rails
How to deploy Ruby on Rails apps with Hatchbox
Updated
When Hatchbox detects rails in the Gemfile in the repository, it will trigger the Rails build process.
- Install the Ruby version from
.ruby-version,.tool-versions, orGemfile.lock - Install the correct Bundler version and dependencies
- Check for assets:precompile and run it (API-only apps won't have this)
- Check for db:migrate and run it on the cron server (so it only runs once a deploy)
After building, Hatchbox will add a process for the Rails server on the first deploy. Hatchbox will also add processes for Sidekiq and Solid Queue if detected as well.