01 / 04
Path A — App Platform (PaaS)
Point App Platform at your GitHub repo. It detects Rails (or reads your Dockerfile), provisions the app, wires a Managed Postgres, terminates TLS, and gives you rolling deploys. `.do/app.yaml` captures the whole thing as code.
yml# .do/app.yaml name: rails-app region: nyc services: - name: web dockerfile_path: Dockerfile http_port: 3000 instance_size_slug: basic-xs instance_count: 2 health_check: { http_path: /up } envs: - { key: RAILS_LOG_TO_STDOUT, value: "true" } - { key: RAILS_MASTER_KEY, type: SECRET } workers: - name: sidekiq dockerfile_path: Dockerfile run_command: bundle exec sidekiq databases: - { name: db, engine: PG, version: "16", production: true }