This commit is contained in:
Sheaza 2024-10-28 22:11:23 +01:00
parent 3c18f5d13c
commit 1271f70e3e

1
run.sh
View File

@ -4,7 +4,6 @@ USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"`
PASSWD=`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 "[server]\nHTTP_PORT = $PORT;\n" > /var/lib/gitea/custom/conf/app.ini
printf "DOMAIN = $HEROKU_APP_DEFAULT_DOMAIN_NAME\n" >> /var/lib/gitea/custom/conf/app.ini printf "DOMAIN = $HEROKU_APP_DEFAULT_DOMAIN_NAME\n" >> /var/lib/gitea/custom/conf/app.ini
printf "PROTOCOL = https ;\n" >> /var/lib/gitea/custom/conf/app.ini
printf "\n[database]\nDB_TYPE = postgres;\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 "NAME = $NAME;\n" >> /var/lib/gitea/custom/conf/app.ini
printf "HOST = $HOST;\n" >> /var/lib/gitea/custom/conf/app.ini printf "HOST = $HOST;\n" >> /var/lib/gitea/custom/conf/app.ini