docs: improve info on external postgres

This commit is contained in:
Fu Zi Xiang 2023-12-28 11:35:38 +08:00
parent 34f69ab3e6
commit 390fb0d328
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -51,9 +51,6 @@ jobs:
# dump all env var
env > deployed/.env
# create config map
kubernetes/scripts/env_to_configmap.sh < deployed/.env | tee deployed/appflowy-configmap.yaml | kubectl apply -f -
# deploy appflowy cloud
envsubst < kubernetes/templates/appflowy-cloud-deployment.yaml | tee deployed/appflowy-cloud-deployment.yaml | kubectl apply -f -
envsubst < kubernetes/templates/appflowy-cloud-service.yaml | tee deployed/appflowy-cloud-service.yaml | kubectl apply -f -

View File

@ -167,5 +167,7 @@ with your own in `nginx/ssl/` directory
## 5. FAQ
- How do I use a different `postgres`?
> To do so, you need set `APPFLOWY_DATABASE_URL` to another postgres url. You also need to set `DATABASE_URL` to use the same postgres database.
1. You need set `APPFLOWY_DATABASE_URL` to another postgres url.
You also need to set `DATABASE_URL` to use the same postgres database.
The default url is using the postgres in docker compose, in service `appflowy_cloud` and `gotrue` respectively.
2. You would need to run the initialization sql file from `migrations/before` in your hosted postgres.