What Laravel Cloud offers the Rails community, and notes from a real migration
Laravel Cloud now runs Ruby and Rails apps with a Heroku-style flow and no Dockerfile. It detects the Gemfile, Ruby version and lockfile platforms, injects DATABASE_URL and REDIS_URL, provisions Solid Cache/Queue databases, and puts Cloudflare in front by default. Migrating Evil Martians' internal Solaris app turned up gaps: no root access, settings that live only in the UI, and worker autoscaling limited to CPU/RAM thresholds. The workarounds were AnyCable bundled into Thruster, fonts vendored into the app tree at build time, and a SQLite-to-Postgres move with pgloader that uses PostgreSQL 18's NOT ENFORCED foreign keys so no superuser is needed.
Related posts
- 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.
- Getting started with Ruby on Rails and Postgres on Supabase
Supabase mediumAdeptA Rails app can be wired to a Supabase-hosted Postgres database by scaffolding with `rails new -d=postgresql` and supplying the Supabase pooler connection URI through the `DATABASE_URL` environment variable. The walkthrough generates an Article scaffold, runs migrations, inserts and queries records from the Rails console, and routes the root path to the articles index. Deployment to Fly.io uses `fly launch` with Postgres provisioning set to none, the connection string stored as a Fly secret, and `fly deploy`.
- Migrate a Rails App from Heroku to Render
Render mediumAdept
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.
- Getting started with Laravel and Postgres
Supabase mediumAdeptA new Laravel app can be connected to a Supabase-hosted Postgres database in a few steps: scaffold the project with Composer, install Laravel Breeze for built-in authentication, set DB_CONNECTION=pgsql and DATABASE_URL to the Supabase pooler connection string, then run migrations and start the dev server. One Supabase-specific tip is to change Laravel's search_path from the public schema to a dedicated schema such as 'laravel', because Supabase exposes public through its data API. Breeze uses Laravel's own auth rather than Supabase Auth, so only database resources are billed.
- 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.