
# Deploy Sovrium on Scalingo

You want a git-push deploy on a European PaaS, with a managed database and no server to run yourself.

## Configure the app

Tell Scalingo how to start Sovrium with a `Procfile`, and add a managed PostgreSQL database so the app runs on Postgres instead of the SQLite default:

```
# Procfile
web: sovrium start app.ts
```

```bash
scalingo --app my-app addons-add postgresql postgresql-starter-512
scalingo --app my-app env-set \
  AUTH_SECRET="$(openssl rand -hex 32)" \
  SOVRIUM_ENCRYPTION_KEY="$(openssl rand -hex 32)" \
  BASE_URL=https://my-app.osc-fr1.scalingo.io
```

Scalingo injects `DATABASE_URL` and `PORT` automatically — Sovrium reads both, so no extra wiring is needed.

## Deploy and verify

```bash
git push scalingo main
curl -fsS https://my-app.osc-fr1.scalingo.io/ >/dev/null && echo "up"
```

## Next

- [Database Infrastructure](/en/docs/database-infrastructure) — how `DATABASE_URL` switches Sovrium to Postgres.
- [Schema Migrations](/en/docs/migrations) — schema evolution applies on the next deploy's boot.
- [Environment Variables](/en/docs/env-vars) — the secrets to set with `env-set`.
