Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

update backend_general ci

appflowycb802c3162cb
diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml
index 6998f1153c..0c5c1f64d0 100644
--- a/backend/docker-compose.yml
+++ b/backend/docker-compose.yml
@@ -4,10 +4,12 @@ services:
build:
context: .
dockerfile: Dockerfile
+ environment:
+ APP_ENVIRONMENT: "production"
depends_on:
- db
ports:
- - "8000:8000"
+ - 8000:8000
db:
image: 'postgres:14'
environment:
@@ -15,4 +17,4 @@ services:
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
ports:
- - '${DB_PORT}:5432'
\ No newline at end of file
+ - 5433:5432
\ No newline at end of file
diff --git a/backend/scripts/init_database.sh b/backend/scripts/init_database.sh
index 712bdacc10..3dec69e6f3 100755
--- a/backend/scripts/init_database.sh
+++ b/backend/scripts/init_database.sh
@@ -18,7 +18,7 @@ if ! [ -x "$(command -v sqlx)" ]; then
exit 1
fi
-source ./env.sh
+source env.sh
if [[ -z "${SKIP_DOCKER}" ]]
then