[ci skip] add more useful post-deploy task and make blockquote
This commit is contained in:
1 parent
111bac03ab
commit
a3b1730719
1 file changed
+2
-2
@@ -14,7 +14,7 @@ Common use cases include:
|
|||||||
Dokku accomplishes this by using an `app.json` file. We (mostly) use the same format as Heroku's [app.json](https://devcenter.heroku.com/articles/app-json-schema).
|
Dokku accomplishes this by using an `app.json` file. We (mostly) use the same format as Heroku's [app.json](https://devcenter.heroku.com/articles/app-json-schema).
|
||||||
However, dokku currently only supports the nodes `scripts.dokku.predeploy` and `scripts.dokku.postdeploy`.
|
However, dokku currently only supports the nodes `scripts.dokku.predeploy` and `scripts.dokku.postdeploy`.
|
||||||
Simply place an `app.json` file in the root of your repository or for dockerfile apps, `ADD` it to /app.
|
Simply place an `app.json` file in the root of your repository or for dockerfile apps, `ADD` it to /app.
|
||||||
NOTE: postdeploy changes are *NOT* committed to the app image.
|
>NOTE: postdeploy changes are *NOT* committed to the app image.
|
||||||
|
|
||||||
### Example app.json
|
### Example app.json
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ NOTE: postdeploy changes are *NOT* committed to the app image.
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dokku": {
|
"dokku": {
|
||||||
"predeploy": "touch /app/predeploy.test",
|
"predeploy": "touch /app/predeploy.test",
|
||||||
"postdeploy": "touch /app/postdeploy.test"
|
"postdeploy": "curl https://some.external.api.service.com/deployment?state=succuss"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
|
|||||||
Reference in new issue
Block a user