Test
This commit is contained in:
parent
b164162f3d
commit
319abacc59
@ -1,10 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
export GITEA__database__DB_TYPE=postgres
|
||||
export GITEA__database__DB_TYPE=${DATABASE_URL%%:*}
|
||||
export GITEA__database__USER=$(echo ${DATABASE_URL} | sed -r "s|.*://([^:]+):.*|\1|")
|
||||
export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^@]+)@.*|\1|")
|
||||
export GITEA__database__HOST=$(echo ${DATABASE_URL} | sed -r "s|.*@([^:]+):.*|\1|")
|
||||
export GITEA__database__NAME=$(echo ${DATABASE_URL} | sed -r "s|.*:([0-9]+)/([^?]+).*|\2|")
|
||||
|
||||
/usr/local/bin/gitea web -port $PORT
|
||||
|
Loading…
Reference in New Issue
Block a user