Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/docs/guides/server-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ Postgres has no such limitation and is recommended for production deployment.

### PostgreSQL

To store the server state in Postgres, set the `DSTACK_DATABASE_URL` environment variable.
To store the server state in Postgres, set the `DSTACK_DATABASE_URL` environment variable:

```shell
$ DSTACK_DATABASE_URL=postgresql+asyncpg://user:password@db-host:5432/dstack dstack server
```

??? info "Migrate from SQLite to PostgreSQL"
You can migrate the existing state from SQLite to PostgreSQL using `pgloader`:
Expand Down
Loading