# What Laravel Cloud offers the Rails community, and notes from a real migration

> Our experience moving an internal Rails app to Laravel Cloud. Heroku-shaped deploys in 2026, Cloudflare included, managed Postgres and Valkey, how to modify the build, and a bonus: SQLite-to-Postgres migration along the way.

- Date: 2026-12-01
- Authors: Andrey Novikov, Travis Turner
- Categories: Rails, Infrastructure
- URL: https://evilmartians.com/chronicles/what-laravel-cloud-offers-the-rails-community-and-notes-from-a-real-migration

---

We decided to try a new host for Ruby web apps: [Laravel Cloud](https://laravel.com/cloud) (yes, the Laravel from PHP). We moved our internal Rails backoffice app, Solaris, onto it. Here's what the platform gets right, where the Heroku-shaped DX returns, and a couple of tricks to work around platform limitations.

PHP was never in our toolbox, but we've been watching Laravel development for years. The framework has taken up Rails' conventions and, in some places, actually surpassed the master. So, when Laravel Cloud added [Ruby and Rails support](https://laravel.com/cloud/docs/deploy-guides/ruby), we had to try it. And on a real app! 

_That app_ is Solaris, our internal operations tool. It handles staffing, time off, reviews, revenue, and payments, the data that keeps the Evil Martians roving. It had a few needs the platform didn't cover, and solving them took the same Rails knowledge we bring to client apps. But overall, things went well, and you can reuse what we found. Read on.

*Work with Evil Martians*: https://evilmartians.com/services/performance-scalability

First, let's walk back down Rails app cloud deployment history road.

*Read also Evil Martians' article*: https://evilmartians.com/chronicles/migrating-whop-from-postgresql-to-planetscale-zero-downtime

Remember Heroku?

For a decade, Heroku was the default answer for “_I just want my Rails app to be on the internet._”

You'd write a `Procfile`, enable add-ons for Postgres and Redis, type `git push heroku main`, and you shipped. There were no walls of YAML or arguing about ingress controllers before the product had users. The magic faded as teams grew past the dyno model, hit opaque pricing, stumbled in layers of buildpacks, or needed controls Heroku wouldn't give them.

## Then, everyone got Kubernetes

Kubernetes is fine infrastructure for complex apps. You get the controls. Perhaps too many. It's a full-time job. You own the cluster, the networking, the certificate dance… But many teams paid that tax because "serious" production meant containers and a CNCF-shaped stack. Every cloud also nudged you toward its managed control plane, its storage classes, and its IAM quirks. Once you're deep in one provider's Kubernetes flavor, it's hard to get unflavored.

Tools like [Canine](https://canine.sh) and [Kuby](https://getkuby.io) help to simplify this to some extent, but still, the amount of complexity one has to deal with is quite serious.

## The rise of new platforms

After that, there was a wave of new PaaS. These accept your Dockerfile (Railway, Render, Fly) and provide all the commodity building blocks for you: database, CDN, etc. But you still need a `Dockerfile`.

**Laravel Cloud is a bit different**. It tries to go back to Heroku roots and doesn't require your app to have _any_ platform-specific settings in order to deploy. Not even a `Dockerfile`.

## Wait. No Docker in 2026?

Laravel Cloud's user story is simple. You connect the repo, pick a runtime, attach managed resources, and deploy. [No Dockerfile required](https://laravel.com/cloud/deploy-a-laravel-app). For Ruby, this looks for a `Gemfile`, reads `.ruby-version`, installs gems with the Bundler version from your lockfile, and starts `rails server` by default (optionally you can override it in a `Procfile`).

This is Heroku-shaped opinionated runtimes instead of "bring your own image", except the surface is wider, with PHP, Node, Go, Python, Ruby, and Rust.

---

*Moving or scaling a Rails app? Book a free consultation, and let's make it work.* [Contact Evil Martians](https://evilmartians.com/contact-us.md)

---

## What do you get out of the box?

**Cloudflare is included.** Laravel Cloud [partners with Cloudflare](https://laravel.com/cloud/docs/intro) for edge caching and DDoS protection, which is enabled by default. TLS terminates in front of your app; Puma speaks plain HTTP and trusts `X-Forwarded-Proto`. You don't need to bolt on a CDN later as a separate project.

**Managed databases and Valkey live on the same canvas.** Attach [Serverless Postgres](https://laravel.com/cloud/docs/resources/databases/postgres) or managed MySQL, plus a Valkey/Redis cache, from the environment UI; Cloud injects `DATABASE_URL` and `REDIS_URL`. For Rails multi-DB setups it goes even further: if `config/database.yml` declares conventional `primary` / `cache` / `queue` connections, attaching one cluster also provisions the Solid Cache and Solid Queue databases and injects `CACHE_DATABASE_URL` / `QUEUE_DATABASE_URL`. We kept Solid Queue as a separate `bin/jobs` process and pointed AnyCable broadcasts at Valkey.

**It reads the app the way a Rails person would.** Are you missing `aarch64-linux` in the lockfile? The create flow will tell you before burning a deploy. Are Sidekiq or GoodJob in the lockfile? Laravel Cloud will suggest worker commands. Is `database.yml` shaped for Solid? It dutifully expects that shape. After years of platforms that only see "a container listening on `$PORT`," having the host notice *Rails* is refreshing. And, frankly, a little spooky the first time it guesses right.

**Autoscaling and scaling to zero.** Low-traffic apps can sleep when idle, so you don't pay for compute. Laravel Cloud says a sleeping app [wakes in under 500 ms](https://laravel.com/cloud/compute).

**Automatic Ruby security updates (soon!)** The Laravel Cloud team is considering automatically updating apps to the most recent patch version of Ruby when security releases come out, the same way they already do for apps on PHP and Node.js. These days, AI tools find security holes much faster than before, so patches drop more frequently, and a platform that applies them _for you_ saves real work when you're looking after many small apps. Right now you have to bump the version in your `.ruby-version` yourself, and the team is working on shipping updates as fast as possible: the most recent security release, 4.0.10, was available a couple of hours after the Ruby tarball dropped.

## What we liked

 1. Automatic secret injection: Use PostgreSQL and the application will get `DATABASE_URL` automatically. Use Valkey for `REDIS_URL`.
 2. Sane defaults: the default build command calls `bundle install` and `rails assets:precompile`. Meanwhile, the default deploy command calls `rails db:prepare`.
 3. Basic monitoring and logging are there and done quite well. This made it easy to debug a couple of things that popped up during migration.
 4. Web console! No need to SSH into some cryptic address or spin a one-off container/pod manually: just hit the Open console button in the web UI and get a shell right in your browser. Ideal for one-off `rails console` sessions. Commands and their output are preserved and can be inspected in the web UI later.
 5. [Terraform provider](https://github.com/laravel/terraform-provider-laravel) (in beta) is there for those who prefer _Infrastructure as Code_ to a beautiful UI canvas! (I do!)

## What we missed

The automagic can fade when you need something custom for your app (but no problem for a little human/Martian skill).

 1. There is no root and no ability to install arbitrary software _yet_ (the Laravel Cloud team is working on buildpack support). The [Ruby base image](https://laravel.com/cloud/docs/base-images#ruby) has everything a typical Rails app needs, and there are pre-made _add-ons_ for popular software like FFmpeg, Puppeteer, or wkhtmltopdf.
 2. A lack of declarativeness. For instance, some deploy-related settings live in the UI only, and I'd really like to have them committed to the repository, e.g. as Terraform resources.
 3. No `Dockerfile`! Maybe overkill for simple apps, but I've become so used to containers over the last 10 years that I really just miss that single place of runtime environment definition.

## Things that would be nice to have in the future

While Laravel Cloud supports [HTTP request pressure-based autoscaling](https://laravel.com/cloud/docs/compute#http-traffic-autoscaling) for web applications and queue-latency autoscaling for its managed queues, users of Sidekiq or Solid Queue get only CPU/RAM thresholds, which are unreliable in our experience.

For bigger apps, we'd want worker autoscaling to follow real saturation signals: request queue time and thread pool utilization for the app servers, and queue latency for background jobs.

Read the [Puma docs about measuring app server utilization](https://puma.io/puma/file.deployment.html#:~:text=Measuring%20utilization%20and%20queue%20time) and the [Sidekiq guide on scaling](https://github.com/sidekiq/sidekiq/wiki/Scaling).

**Up next, let's share some recipes.**

### AnyCable

While Laravel Cloud has its own WebSocket server, Reverb, it doesn't work with Rails. Of course, you can use plain Action Cable, but it's greedy when it comes to precious RAM at scale.

Built-in AnyCable support for Laravel Cloud is something we would love to see in the future. (Blink if you're interested, too.) Also: 
*Read also Evil Martians' article*: https://evilmartians.com/chronicles/anycable-for-laravel

However, there is a solution: we've forked Basecamp's Thruster and included AnyCable right into it and released it as the [anycable-thruster](https://github.com/anycable/thruster) gem. Just place it in your Gemfile, replace the run command with `bundle exec thrust bin/rails server` and don't forget to add Valkey to the setup.

Custom fonts

Our app generates PDFs with Prawn and our brand Martian fonts. In the Dockerfile, we unpacked the TTFs into `/usr/share/fonts` inside the Docker image and they were picked up automatically. In Laravel Cloud's Ruby runtime you can't write to system paths, so vendoring is the way to go!

The environment **build command** allows us to run arbitrary commands before the release goes live. So we can write a script that will fetch fonts into the app tree instead of baking them into an image:

```bash
# bin/vendor-fonts — called from Cloud's build command, before assets:precompile
version="1.1.0"
checksum="483aa2d201a6c44610c0bdcf65eaf425b467d61e9ab606213eacef3e216c2a12"
dest="vendor/fonts/martian-mono"
url="https://github.com/evilmartians/mono/releases/download/v${version}/martian-mono-${version}-ttf.zip"

curl -fsSL -o /tmp/martian-mono.zip "$url"
echo "${checksum}  /tmp/martian-mono.zip" | sha256sum -c -
mkdir -p "$dest"
unzip -jo /tmp/martian-mono.zip MartianMono-StdRg.ttf MartianMono-StdBd.ttf MartianMono-StdxBd.ttf -d "$dest"
```

And then, we can instruct Prawn to look for fonts in the app's vendor directory:

```ruby
FONTS_DIR = Rails.root.join("vendor/fonts/martian-mono")
font_families.update(
  "MartianMono" => {
    regular: File.join(FONTS_DIR, "MartianMono-StdRg.ttf"),
    bold: File.join(FONTS_DIR, "MartianMono-StdBd.ttf"),
  },
)
```

### Bonus: migrating to PostgreSQL

Our previous setup used Litestream, which isn't supported by Laravel Cloud, and as our app grew, we started to want all the data types that PostgreSQL can offer, so we just decided to migrate along the way.

In the process, we found the amazing [pgloader](https://pgloader.io) tool; it can migrate all the data from various other RDBMS to PostgreSQL. The only catch: how to load data into the database when it has foreign keys watching for data integrity.

pgloader can load with `disable triggers`, and this is fine locally when you have a superuser account. But Laravel Cloud's managed Postgres doesn't hand you that. If child rows load before parents, the first FK check aborts the import. If you sort every table by hand, you'll still miss a cycle.

Fortunately, PostgreSQL 18 has a feature for that called [non-enforced constraints](https://www.postgresql.org/docs/release/18.0/). We get to keep the FK definitions, stop enforcing them for the load, then turn enforcement back on (which validates existing rows). Being the table owner is enough; superuser not required.

```ruby
# After db:schema:load, before pgloader (data only, no "disable triggers")
c = ActiveRecord::Base.connection
fks = c.tables.flat_map { |t| c.foreign_keys(t) }
raise "no FKs found" if fks.empty?

fks.each do |fk|
  c.execute(<<~SQL.squish)
    ALTER TABLE #{c.quote_table_name(fk.from_table)}
    ALTER CONSTRAINT #{c.quote_column_name(fk.name)} NOT ENFORCED
  SQL
end
```

Run pgloader with `data only, reset sequences` (and your usual SQLite→Postgres casts for Booleans and text):

```sh
java -jar ~/Downloads/pgloader.jar --type sqlite \
  --with "data only, reset sequences" \
  --with "workers = 4, concurrency = 1" \
  --cast "type int when (= precision 1) to boolean using tinyint-to-boolean" \
  --cast "type tinyint to boolean using tinyint-to-boolean" \
  --cast "type text to text drop typemod using remove-null-characters" \
  storage/prod.sqlite3 \
  "$DATABASE_URL"
```

Ignore the errors about system tables: `activerecord_metadata` and `schema_versions`.

Then, the same loop with `ENFORCED` instead of `NOT ENFORCED`:

```sh
bin/rails runner - <<'RUBY'
c = ActiveRecord::Base.connection
fks = c.tables.flat_map { |t| c.foreign_keys(t) }
raise "no FKs found" if fks.empty?
fks.each do |fk|
  c.execute("ALTER TABLE #{c.quote_table_name(fk.from_table)} ALTER CONSTRAINT #{c.quote_column_name(fk.name)} ENFORCED")
end
puts "ENFORCED: #{fks.size}"
RUBY
```

Theoretically, enforcement can fail if you have orphan rows to fix, but if you're restoring from a consistent dump, that won't happen.

Now we're ready to run your first deploy and switch DNS to let traffic flow to your app on a bright new cloud!

## Feelings on a familiar cloud

For us, things would've been a smoother experience had our app been a bit more of a standard Rails app, and actually, most of our problems turned up because our app had some specific requirements (for example, we wanted AnyCable, field-level encryption of database rows, and so on).

*Read also Evil Martians' article*: https://evilmartians.com/chronicles/gemfile-of-dreams-libraries-we-use-to-build-rails-apps

But **Laravel Cloud brings back the deploy experience many of us have missed since the best days of Heroku**. We connect a repo, attach Postgres and Valkey, and push. It reads a Rails app the way a Rails developer would, wires up credentials for you, and puts Cloudflare in front of everything by default. Trade-offs appear when an app needs something nonstandard: there's no root access, no Dockerfile, and some deploy settings live in the UI instead of the repository. 

For bigger teams, there's also a Private Cloud tier with dedicated compute and private networking, but we didn't need this for Solaris.

In our case, AnyCable, custom fonts, and the move from SQLite to PostgreSQL each needed a workaround, but none took long, and the recipes above should save you the same detours! 

If you maintain a handful of small or mid-sized Rails apps and want to spend less time on infrastructure, **Laravel Cloud is worth trying today**! And with Ruby security auto-updates and custom software installs on the roadmap, it's a platform we'll keep watching.

---

**Moving or scaling a Rails app?** Book a free consultation, and let's make it work. [Contact Evil Martians](https://evilmartians.com/contact-us.md)

## Related

- [Andrey Novikov](https://evilmartians.com/martians/andrey-novikov.md)
- [Travis Turner](https://evilmartians.com/martians/travis-turner.md)
- [Blog](https://evilmartians.com/chronicles.md)

Site index for LLMs: https://evilmartians.com/llms.txt
