From 5c8968edb90c26f2b6429dcc911fae0f065fc340 Mon Sep 17 00:00:00 2001 From: Sheaza Date: Mon, 28 Oct 2024 21:30:45 +0100 Subject: [PATCH] add domain --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 63ee5d3..bc30f7a 100644 --- a/run.sh +++ b/run.sh @@ -3,7 +3,8 @@ NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-` USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"` PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"` printf "[server]\nHTTP_PORT = $PORT;\n" > /var/lib/gitea/custom/conf/app.ini -printf "[database]\nDB_TYPE = postgres;\n" >> /var/lib/gitea/custom/conf/app.ini +printf "DOMAIN = gitea-test-0ed1308f2f68.herokuapp.com ;\n" >> /var/lib/gitea/custom/conf/app.ini +printf "\n[database]\nDB_TYPE = postgres;\n" >> /var/lib/gitea/custom/conf/app.ini printf "NAME = $NAME;\n" >> /var/lib/gitea/custom/conf/app.ini printf "HOST = $HOST;\n" >> /var/lib/gitea/custom/conf/app.ini printf "USER = $USER;\n" >> /var/lib/gitea/custom/conf/app.ini