docs: improve info on external postgres
This commit is contained in:
parent
34f69ab3e6
commit
390fb0d328
|
|
@ -51,9 +51,6 @@ jobs:
|
||||||
# dump all env var
|
# dump all env var
|
||||||
env > deployed/.env
|
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
|
# deploy appflowy cloud
|
||||||
envsubst < kubernetes/templates/appflowy-cloud-deployment.yaml | tee deployed/appflowy-cloud-deployment.yaml | kubectl apply -f -
|
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 -
|
envsubst < kubernetes/templates/appflowy-cloud-service.yaml | tee deployed/appflowy-cloud-service.yaml | kubectl apply -f -
|
||||||
|
|
|
||||||
|
|
@ -167,5 +167,7 @@ with your own in `nginx/ssl/` directory
|
||||||
|
|
||||||
## 5. FAQ
|
## 5. FAQ
|
||||||
- How do I use a different `postgres`?
|
- 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.
|
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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue