Deploying with Dokku and in need to run some basic setup tasks such as copying config/database.yml.example
to config/database.yml
in Rails? It’s possible with Dokku 0.5.0 and app.json
file.
Example of the above as app.json
file:
{
"scripts": {
"dokku": {
"predeploy": "cp /app/config/database.yml.example /app/config/database.yml"
}
}
}
Check out my book
Deployment from Scratch is unique Linux book about web application deployment. Learn how deployment works from the first principles rather than YAML files of a specific tool.