Deploy Ruby on Rails with Dokku – (Includes Redis, Sidekiq, ARM Servers, Docker)
railsnotes.xyz
railsnotes.xyz
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/
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!
I hope you find this useful! I wasn't too familiar with Dokku before writing this guide (and I still have a lot to learn), to if you have any feedback or suggestions, I'd love to hear it.
Thanks! Harrison
Wow! The Heztner price is too good to be true. I need to make a migration to it