Compare commits
No commits in common. "b9f4e88016f4768553f2c8dacd685fdecbedca14" and "8496476841e1d83b77bb8b7b96e3ef3ec0537cdd" have entirely different histories.
b9f4e88016
...
8496476841
3
run.sh
3
run.sh
@ -2,8 +2,9 @@ HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-`
|
|||||||
NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
|
NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
|
||||||
USER=`echo $DATABASE_URL | grep -o "//[[:alnum:]]*:" | grep -o "[[:alnum:]]*"`
|
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:]]*"`
|
||||||
|
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 "[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 = $DOMAIN\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
|
||||||
|
Loading…
Reference in New Issue
Block a user