Run ports in pre-deploy

This commit is contained in:
Luke Murphy 2020-03-15 08:48:24 +01:00
parent aa49f2d295
commit cf7ff6db0f
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 7 additions and 5 deletions

View File

@ -2,11 +2,6 @@
"name": "gitea", "name": "gitea",
"description": "Gitea is a painless self-hosted Git service.", "description": "Gitea is a painless self-hosted Git service.",
"repository": "https://gitlab.com/autonomic-cooperative/gitea-dokku", "repository": "https://gitlab.com/autonomic-cooperative/gitea-dokku",
"dokku": {
"plugins": [
{ "name": "proxy", "commands": ["proxy:ports-add http:80:3000"] }
]
},
"scripts": { "scripts": {
"dokku": { "dokku": {
"predeploy": "bash /app/predeploy.sh", "predeploy": "bash /app/predeploy.sh",

View File

@ -11,10 +11,17 @@ setup_db() {
fi fi
} }
setup_ports() {
set -eu
dokku proxy:ports-add http:80:3000
}
main() { main() {
set -eu set -eu
setup_db setup_db
setup_ports
} }
main main