heroku
This commit is contained in:
parent
7300b7b97d
commit
8d66aaa2f4
@ -16,11 +16,13 @@ fi
|
|||||||
|
|
||||||
# Get app url
|
# Get app url
|
||||||
FILE=/app/heroku-app.txt
|
FILE=/app/heroku-app.txt
|
||||||
ROOT_URL=$(grep -oP '(?<=^ROOT_URL\s*=\s*).+' $FILE)
|
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
|
||||||
|
|
||||||
# printf "[server]\nDOMAIN = $DOMAIN\n" > /var/lib/gitea/custom/conf/app.ini
|
# printf "[server]\nDOMAIN = $DOMAIN\n" > /var/lib/gitea/custom/conf/app.ini
|
||||||
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\n" >> /var/lib/gitea/custom/conf/app.ini
|
printf "[database]\nDB_TYPE = $DB_TYPE\nHOST = $HOST\nNAME = $NAME\nUSER = $USER\nPASSWD = $PASSWD\n" >> /var/lib/gitea/custom/conf/app.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user