From cf7ff6db0f0e148d3b15920d2509713669940e38 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 15 Mar 2020 08:48:24 +0100 Subject: [PATCH] Run ports in pre-deploy --- app.json | 5 ----- predeploy.sh | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app.json b/app.json index f6a7c68..0872801 100644 --- a/app.json +++ b/app.json @@ -2,11 +2,6 @@ "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-add http:80:3000"] } - ] - }, "scripts": { "dokku": { "predeploy": "bash /app/predeploy.sh", diff --git a/predeploy.sh b/predeploy.sh index a10cfc4..937626a 100755 --- a/predeploy.sh +++ b/predeploy.sh @@ -11,10 +11,17 @@ setup_db() { fi } +setup_ports() { + set -eu + + dokku proxy:ports-add http:80:3000 +} + main() { set -eu setup_db + setup_ports } main