Appearance
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.jsonKeel reads app.json and the Procfile beside it:
- Procfile:
webbecomes a web service, other processes become workers, andrelease:becomesrelease.command. - Add-ons:
heroku-postgresqlbecomes a PostgreSQL database andheroku-redisbecomes a Valkey cache. Any other add-on is listed as not carried over. envkeys becomesecrets: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 listedSkip 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.dumpThe 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.