From d33294d0ffdbd6920da59042b2030582709d9836 Mon Sep 17 00:00:00 2001 From: awieczarek Date: Sun, 20 Oct 2024 16:19:41 +0200 Subject: [PATCH] Test --- Dockerfile | 7 ------- heroku.yml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0dab3f1..35355ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,3 @@ ADD config /etc/gitea ADD data /var/lib/gitea ADD localtime /etc/localtime ADD timezone /etc/timezone - -COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh - -USER root -RUN chmod +x /usr/local/bin/parse_db_url.sh - -ENTRYPOINT ["/usr/local/bin/parse_db_url.sh"] diff --git a/heroku.yml b/heroku.yml index 46b37e9..4f05cbe 100644 --- a/heroku.yml +++ b/heroku.yml @@ -2,8 +2,20 @@ setup: addons: - plan: heroku-postgresql as: DATABASE + config: + POSTGRES_USER: gitea + POSTGRES_PASSWORD: gitea + POSTGRES_DB: gitea build: docker: web: Dockerfile + config: + GITEA__database__DB_TYPE: postgres + GITEA__database__HOST: db:5432 + GITEA__database__NAME: gitea + GITEA__database__USER: gitea + GITEA__database__PASSWD: gitea +run: + web: /usr/local/bin/gitea web -port $PORT