Skip to content

Commit

Permalink
Merge pull request AppFlowy-IO#238 from AppFlowy-IO/doc/ext-postgres
Browse files Browse the repository at this point in the history
docs: improve info on external postgres
  • Loading branch information
speed2exe authored Dec 31, 2023
2 parents 34f69ab + 390fb0d commit d08382f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/deploy.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down
4 changes: 3 additions & 1 deletion doc/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit d08382f

Please sign in to comment.