Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(deploy): removing hardcord postgres ports-but really should be 5432 be default

justin71c9873d4c15
diff --git a/deploy/kaneo-entrypoint.sh b/deploy/kaneo-entrypoint.sh
index 9e5ed40c9..6ca0fe049 100644
--- a/deploy/kaneo-entrypoint.sh
+++ b/deploy/kaneo-entrypoint.sh
@@ -35,7 +35,7 @@ if [ -z "${DATABASE_URL:-}" ]; then
if [ -n "${POSTGRES_PASSWORD:-}" ]; then
encoded_user="$(urlencode "$POSTGRES_USER")"
encoded_password="$(urlencode "$POSTGRES_PASSWORD")"
- export DATABASE_URL="postgresql://${encoded_user}:${encoded_password}@postgres:5432/${POSTGRES_DB}"
+ export DATABASE_URL="postgresql://${encoded_user}:${encoded_password}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DB}"
echo "DATABASE_URL not set — derived from POSTGRES_* vars"
else
echo "ERROR: DATABASE_URL is not set and POSTGRES_PASSWORD is not set" >&2