Rails
Deploy a Rails app with its database, workers, uploads and Rails 8 extra databases.
Step by step: Deploy Rails to DigitalOcean · Deploy Rails to Hetzner · Deploy Rails to Vultr · Deploy Rails to OVHcloud
- Release:
bin/rails db:prepareruns before each version goes live (yourProcfilerelease:wins). - Production defaults:
RAILS_ENV,RACK_ENV,RAILS_SERVE_STATIC_FILESandRAILS_LOG_TO_STDOUTare set if you haven’t; assets build withSECRET_KEY_BASE_DUMMY=1, so a real secret isn’t needed at build time.SECRET_KEY_BASEis generated once. - Databases:
pg→ Postgres,mysql2/trilogy→ MySQL,redis/sidekiq→ Redis. Rails 8 extra databases (cache, queue, cable) found inconfig/database.ymleach get their own<NAME>_DATABASE_URL. - Workers: Sidekiq, Solid Queue (
bin/jobswhen present), GoodJob, Resque and Delayed Job are offered from yourGemfile.lock. - Uploads: Active Storage on disk gets a persistent
storage/volume automatically; or attach a bucket and the S3 variables are injected. - Old native gems (nio4r, puma 5…) compile under GCC 14 without changes.