Migrate a Rails App from Heroku to Render
Migrating the open-source git-scm.org Rails app from Heroku to Render means mapping Heroku concepts (web/worker processes, dynos, Heroku Postgres/Redis, Scheduler, config vars) to Render equivalents and codifying the whole stack in a render.yaml Blueprint. The walkthrough defines a Ruby web service, wires PostgreSQL and Redis connection strings in through environment variables, and adds a bin/render-build.sh script for asset precompilation and migrations that Heroku's buildpack used to handle. It also prompts for secrets like the Bonsai Elasticsearch URL with sync: false, schedules nightly rake tasks as a standalone Cron Job, and deduplicates shared variables with an Environment Group. Practical tips include copying SECRET_KEY_BASE from Heroku so users stay logged in, adding a .ruby-version file, and checking Procfile, app.json and heroku.yml to discover the app's components.
Related posts
- Migrate a Django App from Heroku to Render (and get it ready for prod)
Render mediumAdept
A Django e-commerce app (Saleor) can be moved from Heroku to Render by translating its app.json, Procfile, Dockerfiles and docker-compose.yml into a single render.yaml Blueprint. The walkthrough defines the GraphQL API as a web service on Render's native Python environment, then wires in Postgres and Redis through connection-string environment variables. It adds a build script for dependencies and migrations, a static-site dashboard with rewrite rules, and a Next.js storefront that drops the redundant nginx layer. The second half covers production hardening: an RSA key stored as a Secret File, background workers, cron jobs, runtime steps, a message broker, and deriving shared environment variables to keep the Blueprint DRY.
- Migrating From Heroku To Railway
Railway mediumAdeptMoving a Heroku app to Railway comes down to three steps: deploy from a GitHub repo, import Heroku config vars, and add Postgres and Redis as separate database services. Railway reads the repo's Procfile and turns each named process (e.g. web, worker) into its own service, which takes the place of Heroku's dyno process model. It injects DATABASE_URL and REDIS_URL automatically, so any imported Heroku copies of those variables must be deleted or they will override Railway's. The guide also covers `railway run` for running commands like migrations against cloud variables, `railway up` for CLI deploys, and having apps listen on 0.0.0.0:$PORT so Railway can expose them.
- How To Set Up a Staging Environment on Heroku in 3 Easy Steps
Heroku Engineering mediumAdeptHeroku pipelines let you put a staging app in front of production: disable auto-deploy on production, create a pipeline with a new staging app auto-deploying from GitHub, and optionally enable Review Apps per pull request. Staging should be isolated per Twelve-Factor principles, with separate config vars and its own Postgres database. That database is either built from migrations via the release phase and app.json postdeploy scripts, or copied from production with the destructive pg:copy when the data is not sensitive. Promotion copies the already-compiled slug to production rather than rebuilding, so verified code runs unchanged and rollbacks are fast, though database migrations must be rolled back separately.
- Front-End Web Deep Dive: Runtime Config
Heroku Engineering mediumAdeptHeroku's Front-End Web Cloud Native Buildpack provides runtime configuration for static web apps by writing PUBLIC_WEB_-prefixed environment variables into the HTML <head> as data-* attributes each time the bundled static server starts. JavaScript reads them via document.head.dataset, so values like API URLs can change between staging and production without a rebuild. Unlike the older create-react-app-buildpack, which rewrote the JS bundle, this approach is framework-agnostic and does not conflict with CSP or Subresource Integrity. Existing apps may need refactoring so config values are read at runtime rather than captured at build time.
- Using GitHub Actions with Heroku Flow for additional Security Control
Heroku Engineering mediumAdeptBecause GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action. The action uses the Platform API's Source Endpoint to upload private repo code, deploy apps on push, dispatch or schedule events, and create, update or remove Review Apps on pull request events. A weekly scheduled workflow rebuilds and redeploys the runner to meet GitHub's 30-day update requirement. Tradeoffs include no repo link in the Review App UI, no automatic Heroku CI tests, no Fir support, and a custom runner image that other actions should be tested against.