Work with ports again in app.json

This commit is contained in:
Luke Murphy 2020-03-15 08:54:38 +01:00
parent 369adfb0cd
commit ea4dc4a548
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 8 additions and 7 deletions

View File

@ -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",

View File

@ -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