Skip to content

Moving from Heroku ​

The concepts carry over directly. Process types become services, the release phase becomes release.command, and config vars become secrets. Follow the six steps; this page covers what's specific to Heroku.

Draft the config ​

bash
keel init --from app.json

Keel reads app.json and the Procfile beside it:

  • Procfile: web becomes a web service, other processes become workers, and release: becomes release.command.
  • Add-ons: heroku-postgresql becomes a PostgreSQL database and heroku-redis becomes a Valkey cache. Any other add-on is listed as not carried over.
  • env keys become secrets: names.

If you have no app.json, plain keel init reads the Procfile and your framework's files.

Heroku sets $PORT, but Keel does not, so the container must listen on the service's port. When a Procfile command reads $PORT, the draft sets PORT in the service's environment so it keeps working.

Secrets ​

bash
heroku config --app myapp                  # see the current values
keel config set SECRET_KEY_BASE=...        # once per name keel init listed

Skip DATABASE_URL and REDIS_URL. Keel provides the database and cache connection details itself; see composing a DATABASE_URL if the app needs one.

Data ​

bash
heroku pg:backups:capture --app myapp
heroku pg:backups:download --app myapp     # writes latest.dump, a custom-format dump
keel db import latest.dump

The import skips Heroku's owners and grants (--no-owner --no-acl), because they name Heroku's roles.

Commands you used ​

Keel vs Heroku has the command-for-command table.

Keel — the missing platform layer for AWS.