diff --git a/parse_db_url.sh b/parse_db_url.sh index b0d971d..dc79f1e 100644 --- a/parse_db_url.sh +++ b/parse_db_url.sh @@ -11,7 +11,8 @@ NAME=$(echo $DATABASE_URL | sed -e 's,.*/\(.*\)$,\1,') SSL_MODE="require" -mkdir -p /var/lib/gitea/custom/conf +printf "\n[server]\n" >> /var/lib/gitea/custom/conf/app.ini +printf "HTTP_PORT = $PORT\n" > /var/lib/gitea/custom/conf/app.ini printf "[database]\n" > /var/lib/gitea/custom/conf/app.ini printf "DB_TYPE = $DB_TYPE\n" >> /var/lib/gitea/custom/conf/app.ini @@ -21,9 +22,4 @@ printf "USER = $USER\n" >> /var/lib/gitea/custom/conf/app.ini printf "PASSWD = $PASSWD\n" >> /var/lib/gitea/custom/conf/app.ini printf "SSL_MODE = $SSL_MODE\n" >> /var/lib/gitea/custom/conf/app.ini -printf "\n[server]\n" >> /var/lib/gitea/custom/conf/app.ini -printf "ROOT_URL = https://your-app-name.herokuapp.com/\n" >> /var/lib/gitea/custom/conf/app.ini -printf "HTTP_PORT = $PORT\n" > /var/lib/gitea/custom/conf/app.ini - - /usr/local/bin/gitea web -port $PORT