Deploy to Heroku

This commit is contained in:
dzikafoczka 2024-10-23 19:00:40 +02:00
parent a33441dcd6
commit 56452032fb
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
https://s464863-gitea-8d04ad5317e1.herokuapp.com/ https://s464863-gitea-24624f542db7.herokuapp.com/

View File

@ -24,9 +24,9 @@ ROOT_URL=$(cat $FILE)
# Custom configuration # Custom configuration
mkdir -p /var/lib/gitea/custom/conf mkdir -p /var/lib/gitea/custom/conf
echo $ROOT_URL # Add custom configuration
printf "[server]\nROOT_URL = $ROOT_URL\n" > /var/lib/gitea/custom/conf/app.ini printf "[server]\nROOT_URL = $ROOT_URL\n" > /var/lib/gitea/custom/conf/app.ini
printf "[database]\nDB_TYPE = $DB_TYPE\nHOST = $HOST\nNAME = $NAME\nUSER = $USER\nPASSWD = $PASSWD\nSSL_MODE = $SSL_MODE\n" >> /var/lib/gitea/custom/conf/app.ini printf "[database]\nDB_TYPE = $DB_TYPE\nHOST = $HOST\nNAME = $NAME\nUSER = $USER\nPASSWD = $PASSWD\nSSL_MODE = $SSL_MODE\n" >> /var/lib/gitea/custom/conf/app.ini
# Start Gitea
/usr/local/bin/gitea web -port $PORT /usr/local/bin/gitea web -port $PORT