From cb802c3162cb17e375aba12a493a1d883f70f54a Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 1 Dec 2021 23:55:13 +0800 Subject: [PATCH] update backend_general ci --- backend/docker-compose.yml | 6 ++++-- backend/scripts/init_database.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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