Run ports in pre-deploy
This commit is contained in:
parent
aa49f2d295
commit
cf7ff6db0f
5
app.json
5
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",
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user