From b2cf1b2216bcf7b00cd1b7a28a26c4c2c1c62c64 Mon Sep 17 00:00:00 2001 From: dzikafoczka Date: Wed, 23 Oct 2024 18:07:28 +0200 Subject: [PATCH] init --- heroku.yml | 5 ++--- script.sh | 14 ++++++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/heroku.yml b/heroku.yml index fddc434..c9e30ca 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,8 +1,7 @@ setup: addons: - plan: heroku-postgresql:essential-0 + build: docker: - web: Dockerfile - config: - APP_NAME: "" \ No newline at end of file + web: Dockerfile \ No newline at end of file diff --git a/script.sh b/script.sh index 71dd3ef..afcc399 100644 --- a/script.sh +++ b/script.sh @@ -17,9 +17,15 @@ else exit 1 fi -mkdir -p /var/lib/gitea/custom/conf +export GITEA__database__DB_TYPE=$DB_TYPE +export GITEA__database__HOST=$HOST +export GITEA__database__NAME=$NAME +export GITEA__database__USER=$USER +export GITEA__database__PASSWD=$PASSWD -printf "[server]\nHTTP_PORT = $PORT;\nDOMAIN = $DOMAIN\n" > /var/lib/gitea/custom/conf/app.ini -printf "[database]\nDB_TYPE = $DB_TYPE\nHOST = $HOST\nNAME = $NAME\nUSER = $USER\nPASSWD = $PASSWD\n" >> /var/lib/gitea/custom/conf/app.ini +# mkdir -p /var/lib/gitea/custom/conf -/usr/local/bin/gitea web \ No newline at end of file +# printf "[server]\nHTTP_PORT = $PORT;\nDOMAIN = $DOMAIN\n" > /var/lib/gitea/custom/conf/app.ini +# printf "[database]\nDB_TYPE = $DB_TYPE\nHOST = $HOST\nNAME = $NAME\nUSER = $USER\nPASSWD = $PASSWD\n" >> /var/lib/gitea/custom/conf/app.ini + +/usr/local/bin/gitea web $PORT \ No newline at end of file