Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Dokku Maintainer here!

Awesome post! I'm reading through it and this struck me as odd:

    > For buildpack-based deployments, the location of the app.json file should be at the root of your repository. Dockerfile-based app deploys should have the app.json in the configured WORKDIR directory; otherwise, Dokku defaults to the buildpack app behaviour of looking in /app.
Thats definitely incorrect now, and was changed in 0.30.0[1] but I neglected to update the docs. I'll get that sorted out now.

---

The `Procfile` `release` process is there to emulate Heroku's `release` process support.

---

The cron support in `app.json` does not support running dokku commands, so folks cannot schedule postgres backups in there without doing something spooky/not recommended.

[1] https://dokku.com/docs/appendices/0.30.0-migration-guide/



Hey thank you for the feedback!

I'll go and make some edits now.

With the app.json file, can you confirm what the default path for it should be? it seems like the default is placing app.json in the root directory of a project, but i'm still unsure.

You've clarified though that we can adjust this with

dokku app-json:set node-js-app appjson-path .dokku/app.json

which is helpful!


Yeah you can just place it in the root of your repo. If you deploy a docker image via `git:from-image` or `git:load-image`, the file is extracted from the image itself, otherwise it is from the committed source code root. You can always change the path as you showed above.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: