From 4f7ef231a1f848b00b57c1947c97dce0d1eec18b Mon Sep 17 00:00:00 2001 From: Sheaza Date: Mon, 28 Oct 2024 21:50:50 +0100 Subject: [PATCH] domain extraction fix --- run.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 8a87824..ff37aea 100644 --- a/run.sh +++ b/run.sh @@ -2,9 +2,8 @@ HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-` 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:]]*"` -DOMAIN=`heroku info -s | grep web_url | cut -b 17- | cut -d/ -f1` printf "[server]\nHTTP_PORT = $PORT;\n" > /var/lib/gitea/custom/conf/app.ini -printf "DOMAIN = $DOMAIN\n" >> /var/lib/gitea/custom/conf/app.ini +printf "DOMAIN = $HEROKU_APP_DEFAULT_DOMAIN_NAME\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