From a2cc89f0ecd5ff010753c8815f368692462d15e3 Mon Sep 17 00:00:00 2001 From: awieczarek Date: Wed, 23 Oct 2024 12:29:23 +0200 Subject: [PATCH] Test --- Dockerfile | 3 ++- heroku.yml | 3 --- parse_db_url.sh | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e0bf65..5b05833 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh USER root RUN chmod 755 /usr/local/bin/parse_db_url.sh +ENV DATABASE_URL=${DATABASE_URL} -RUN /usr/local/bin/parse_db_url.sh +CMD ["/usr/local/bin/parse_db_url.sh"] diff --git a/heroku.yml b/heroku.yml index 4f05cbe..a37457c 100644 --- a/heroku.yml +++ b/heroku.yml @@ -16,6 +16,3 @@ build: GITEA__database__NAME: gitea GITEA__database__USER: gitea GITEA__database__PASSWD: gitea - -run: - web: /usr/local/bin/gitea web -port $PORT diff --git a/parse_db_url.sh b/parse_db_url.sh index e263799..6e5f588 100644 --- a/parse_db_url.sh +++ b/parse_db_url.sh @@ -6,3 +6,4 @@ export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^ export GITEA__database__HOST=$(echo ${DATABASE_URL} | sed -r "s|.*@([^:]+):.*|\1|") export GITEA__database__NAME=$(echo ${DATABASE_URL} | sed -r "s|.*:([0-9]+)/([^?]+).*|\2|") +/usr/local/bin/gitea web -port $PORT