diff --git a/heroku.yml b/heroku.yml index fddc434..c9e30ca 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,8 +1,7 @@ setup: addons: - plan: heroku-postgresql:essential-0 + build: docker: - web: Dockerfile - config: - APP_NAME: "" \ No newline at end of file + web: Dockerfile \ No newline at end of file diff --git a/script.sh b/script.sh index 71dd3ef..afcc399 100644 --- a/script.sh +++ b/script.sh @@ -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 \ No newline at end of file +# 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 \ No newline at end of file