2022-11-15 20:10:19 +01:00
|
|
|
export GITEA__database__DB_TYPE=postgres
|
|
|
|
export GITEA__database__HOST=`echo $DATABASE_URL | grep -o "@.*/" | sed 's/.$//' | cut -c 2-`
|
|
|
|
export GITEA__database__NAME=`echo $DATABASE_URL | grep -o "/[[:alnum:]]*$" | cut -c 2-`
|
|
|
|
export GITEA__database__USER=`echo $DATABASE_URL | grep -o "//[a-z]*:" | grep -o "[a-z]*"`
|
|
|
|
export GITEA__database__PASSWD=`echo $DATABASE_URL | grep -o ":[[:alnum:]]*@" | grep -o "[[:alnum:]]*"`
|
2022-11-15 21:17:42 +01:00
|
|
|
printf "[server]\nHTTP_PORT = $PORT;\n" > /var/lib/gitea/custom/conf/app.ini
|
2022-11-15 21:14:43 +01:00
|
|
|
cat /var/lib/gitea/custom/conf/app.ini
|
2022-11-15 21:20:58 +01:00
|
|
|
/usr/local/bin/gitea web -port $PORT
|