Work with ports again in app.json
This commit is contained in:
parent
369adfb0cd
commit
ea4dc4a548
8
app.json
8
app.json
@ -2,6 +2,14 @@
|
|||||||
"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-set $APP http:80:3000 tcp:222:22"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dokku": {
|
"dokku": {
|
||||||
"predeploy": "bash /app/predeploy.sh",
|
"predeploy": "bash /app/predeploy.sh",
|
||||||
|
@ -11,17 +11,10 @@ setup_db() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_ports() {
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
/usr/bin/dokku proxy:ports-add http:80:3000
|
|
||||||
}
|
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
setup_db
|
setup_db
|
||||||
setup_ports
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Reference in New Issue
Block a user