Pre/post deploy hooks with Dokku 0.5.0

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.

See documentation.

Example of the above as app.json file:

{
  "scripts": {
    "dokku": {
      "predeploy": "cp /app/config/database.yml.example /app/config/database.yml"
    }
  }
}
Any comments? Write me a DM on Twitter.

Before you leave…

Would you like to learn how to deploy your own Ruby on Rails applications? I am writing a book for people like you.

Check it out →