From ea4dc4a548d03eb99c4c79c6c5b545622b9b1ad1 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 15 Mar 2020 08:54:38 +0100 Subject: [PATCH] Work with ports again in app.json --- app.json | 8 ++++++++ predeploy.sh | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app.json b/app.json index 0872801..75db67e 100644 --- a/app.json +++ b/app.json @@ -2,6 +2,14 @@ "name": "gitea", "description": "Gitea is a painless self-hosted Git service.", "repository": "https://gitlab.com/autonomic-cooperative/gitea-dokku", + "dokku": { + "plugins": [ + { + "name": "proxy", + "commands": ["proxy:ports-set $APP http:80:3000 tcp:222:22"] + } + ] + }, "scripts": { "dokku": { "predeploy": "bash /app/predeploy.sh", diff --git a/predeploy.sh b/predeploy.sh index fb716c0..a10cfc4 100755 --- a/predeploy.sh +++ b/predeploy.sh @@ -11,17 +11,10 @@ setup_db() { fi } -setup_ports() { - set -eu - - /usr/bin/dokku proxy:ports-add http:80:3000 -} - main() { set -eu setup_db - setup_ports } main