01 / 04
render.yaml is the whole app
Everything — web service, worker, cron, Postgres, Redis, env groups — lives in a single `render.yaml` (Render Blueprints). Commit it and every PR gets a full preview environment with its own DB. It's the closest thing to a Heroku app.json done right.
yml# render.yaml databases: - name: rails-pg plan: standard postgresMajorVersion: "16" services: - type: web name: rails-web runtime: docker plan: starter healthCheckPath: /up envVars: - key: DATABASE_URL fromDatabase: { name: rails-pg, property: connectionString } - key: RAILS_MASTER_KEY sync: false - type: worker name: rails-sidekiq runtime: docker dockerCommand: bundle exec sidekiq - type: cron name: nightly-report schedule: "0 3 * * *" dockerCommand: bin/rails runner Reports::Nightly.run