> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pxxl.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate from Heroku

> Move a Heroku app: Procfile, config vars, add-ons, and Scheduler.

There's no Heroku importer. Connect your GitHub repo in **Deploy** and copy your config vars.

Pxxl doesn't read `Procfile` or `app.json`. Use the mapping below.

## Concepts

| Heroku | Pxxl |
| - | - |
| App | Project |
| `web:` process in Procfile | `[build] startCommand` |
| `worker:` process | A second service with no public route |
| `release:` process | Part of your build or start command |
| Buildpacks | Detected automatically |
| Config vars | Secrets |
| Heroku Postgres, Redis | [Databases](https://docs.pxxl.app/databases/overview.md) |
| Scheduler | [Cron jobs](https://docs.pxxl.app/cron-jobs.md) |
| Dynos | **Compute & Scaling** (CPU, memory, replicas) |
| Review apps | Pull request previews |
| Pipelines | Environments |

## Procfile to pxxl.toml

```text Procfile theme={null}
web: gunicorn app:app --bind 0.0.0.0:$PORT
worker: python worker.py
release: python manage.py migrate
```

```toml pxxl.toml theme={null}
[build]
language = "python"
pythonVersion = "3.12"
startCommand = "python manage.py migrate && gunicorn app:app --bind 0.0.0.0:$PORT"
```

For the worker, turn on [Multiple Services](https://docs.pxxl.app/deploy/monorepos.md), add a `worker` service with no route, and set its start command:

```toml theme={null}
[services.worker]
startCommand = "python worker.py"
```

## Copy config vars

```bash theme={null}
heroku config --shell -a my-app > .env.heroku
pxxl env push --file .env.heroku
rm .env.heroku
```

Remove Heroku-only values such as `DATABASE_URL` from old add-ons before you push, then add the new Pxxl database URL.

## Database

```bash theme={null}
heroku pg:backups:capture -a my-app
curl -o heroku.dump "$(heroku pg:backups:url -a my-app)"
pg_restore --no-owner -d "$PXXL_DATABASE_URL" heroku.dump
```

## Scheduler

Heroku Scheduler runs commands. Pxxl cron jobs call URLs. Add a protected endpoint that runs the task and schedule it in **Cron Jobs**.

## Checklist

* [ ] Connect the repo and set the start command.
* [ ] Push config vars with `pxxl env push`.
* [ ] Move the database and update `DATABASE_URL`.
* [ ] Recreate workers and scheduled jobs.
* [ ] Test the Pxxl URL, then [move your domain](https://docs.pxxl.app/migrate/overview.md#switch-dns-last).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.