Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: add explicit db name and user to pg_isready check

forehalo1514e1269d12
diff --git a/.github/deployment/self-host/compose.yaml b/.github/deployment/self-host/compose.yaml
index 60f49f6ab8..68f3c3f5e3 100644
--- a/.github/deployment/self-host/compose.yaml
+++ b/.github/deployment/self-host/compose.yaml
@@ -59,7 +59,8 @@ services:
# or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
- test: ['CMD-SHELL', 'pg_isready']
+ test:
+ ['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"]
interval: 1m
start_interval: 10s
start_period: 1m
diff --git a/.prettierignore b/.prettierignore
index 0c4099d55b..ccc0556999 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -26,3 +26,4 @@ packages/frontend/templates/onboarding
packages/backend/native/index.d.ts
packages/frontend/native/index.d.ts
packages/frontend/native/index.js
+compose.yaml
\ No newline at end of file