From f69cddd47d70d9f43c4a42bc0dad1f3f26264492 Mon Sep 17 00:00:00 2001 From: awieczarek Date: Sat, 19 Oct 2024 13:06:31 +0200 Subject: [PATCH] heroku yml --- heroku.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/heroku.yml b/heroku.yml index 248e3c4..c151061 100644 --- a/heroku.yml +++ b/heroku.yml @@ -1,6 +1,6 @@ setup: addons: - - plan: heroku-postgresql:hobby-dev + - plan: heroku-postgresql as: DATABASE build: @@ -8,11 +8,16 @@ build: web: gitea/gitea:1.14.5-rootless run: - web: - command: /bin/s6-svscan /etc/s6 - environment: - GITEA__database__DB_TYPE: postgres - GITEA__database__CONN_STR: ${DATABASE_URL} - GITEA__web__ROOT_URL: https://${HEROKU_APP_NAME}.herokuapp.com/ - GITEA__server__START_SSH_SERVER: "true" + web: /bin/su-exec git /app/gitea/gitea web + +env: + GITEA__database__DB_TYPE: postgres + GITEA__database__HOST: ${DATABASE_HOST} + GITEA__database__NAME: ${DATABASE_DB} + GITEA__database__USER: ${DATABASE_USER} + GITEA__database__PASSWD: ${DATABASE_PASSWORD} + GITEA__server__ROOT_URL: https://your-app-name.herokuapp.com/ + GITEA__server__HTTP_PORT: 3000 + GITEA__server__SSH_PORT: 2222 +