We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 034ae29 commit 28a1cdaCopy full SHA for 28a1cda
docs/docs/guides/server-deployment.md
@@ -124,7 +124,11 @@ Postgres has no such limitation and is recommended for production deployment.
124
125
### PostgreSQL
126
127
-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:
128
+
129
+```shell
130
+$ DSTACK_DATABASE_URL=postgresql+asyncpg://user:password@db-host:5432/dstack dstack server
131
+```
132
133
??? info "Migrate from SQLite to PostgreSQL"
134
You can migrate the existing state from SQLite to PostgreSQL using `pgloader`:
0 commit comments