This commit is contained in:
dzikafoczka 2024-10-23 18:07:28 +02:00
parent 96b9a127e7
commit b2cf1b2216
2 changed files with 12 additions and 7 deletions

View File

@ -1,8 +1,7 @@
setup:
addons:
- plan: heroku-postgresql:essential-0
build:
docker:
web: Dockerfile
config:
APP_NAME: "<nazwa-aplikacji>"
web: Dockerfile

View File

@ -17,9 +17,15 @@ else
exit 1
fi
mkdir -p /var/lib/gitea/custom/conf
export GITEA__database__DB_TYPE=$DB_TYPE
export GITEA__database__HOST=$HOST
export GITEA__database__NAME=$NAME
export GITEA__database__USER=$USER
export GITEA__database__PASSWD=$PASSWD
printf "[server]\nHTTP_PORT = $PORT;\nDOMAIN = $DOMAIN\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
# mkdir -p /var/lib/gitea/custom/conf
/usr/local/bin/gitea web
# printf "[server]\nHTTP_PORT = $PORT;\nDOMAIN = $DOMAIN\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
/usr/local/bin/gitea web $PORT