init
This commit is contained in:
parent
96b9a127e7
commit
b2cf1b2216
@ -1,8 +1,7 @@
|
|||||||
setup:
|
setup:
|
||||||
addons:
|
addons:
|
||||||
- plan: heroku-postgresql:essential-0
|
- plan: heroku-postgresql:essential-0
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
web: Dockerfile
|
web: Dockerfile
|
||||||
config:
|
|
||||||
APP_NAME: "<nazwa-aplikacji>"
|
|
14
script.sh
14
script.sh
@ -17,9 +17,15 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# mkdir -p /var/lib/gitea/custom/conf
|
||||||
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
|
# 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
|
Loading…
Reference in New Issue
Block a user