Compare commits
No commits in common. "8a76c3e47d2710000e589f5dbef9a350288bdd39" and "ed7f5f6e60f69e11cf2e2cfac42794f3fcada59d" have entirely different histories.
8a76c3e47d
...
ed7f5f6e60
@ -1,8 +1,11 @@
|
||||
FROM gitea/gitea:1.14.5-rootless
|
||||
|
||||
|
||||
ADD conf/ /var/lib/gitea/custom/conf/
|
||||
ADD config /etc/gitea
|
||||
ADD data /var/lib/gitea
|
||||
ADD localtime /etc/localtime
|
||||
ADD timezone /etc/timezone
|
||||
|
||||
COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/parse_db_url.sh"]
|
||||
|
@ -1,7 +0,0 @@
|
||||
[database]
|
||||
DB_TYPE = postgres
|
||||
HOST = db:5432
|
||||
NAME = gitea
|
||||
USER = gitea
|
||||
PASSWD = gitea
|
||||
SSL_MODE = require
|
12
heroku.yml
12
heroku.yml
@ -2,20 +2,8 @@ setup:
|
||||
addons:
|
||||
- plan: heroku-postgresql
|
||||
as: DATABASE
|
||||
config:
|
||||
POSTGRES_USER: gitea
|
||||
POSTGRES_PASSWORD: gitea
|
||||
POSTGRES_DB: gitea
|
||||
|
||||
build:
|
||||
docker:
|
||||
web: Dockerfile
|
||||
config:
|
||||
GITEA__database__DB_TYPE: postgres
|
||||
GITEA__database__HOST: db:5432
|
||||
GITEA__database__NAME: gitea
|
||||
GITEA__database__USER: gitea
|
||||
GITEA__database__PASSWD: gitea
|
||||
|
||||
run:
|
||||
web: /usr/local/bin/gitea web -port $PORT
|
||||
|
@ -6,7 +6,3 @@ export GITEA__database__PASSWD=$(echo ${DATABASE_URL} | sed -r "s|.*://[^:]+:([^
|
||||
export GITEA__database__HOST=$(echo ${DATABASE_URL} | sed -r "s|.*@([^:]+):.*|\1|")
|
||||
export GITEA__database__NAME=$(echo ${DATABASE_URL} | sed -r "s|.*:([0-9]+)/([^?]+).*|\2|")
|
||||
|
||||
echo $DATABASE_URL
|
||||
echo $GITEA__database__NAME
|
||||
|
||||
exec /usr/local/bin/gitea web -port $PORT
|
||||
|
Loading…
Reference in New Issue
Block a user