Merge pull request #2003 from dokku/mh-dep-tasks-docs

add more useful post-deploy task and make blockquote
This commit is contained in:
Michael Hobbs committed 2016-03-16 14:24:14 -07:00
commit f930a974a5
1 file changed
+2 -2
+2 -2
View File
@@ -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": {