newrelic / centurion

A mass deployment tool for Docker fleets
MIT License
1.76k stars 113 forks source link

I want to add my own rake tasks. Not sure where to put db.rake file #169

Closed benpillet closed 8 years ago

benpillet commented 8 years ago

First off, thanks for building this. I'm looking forward to seeing it running in our system.

I want to add a task/action to run a rails db:migrate task within the first_server container. I'm not sure where to put it though.

relistan commented 8 years ago

The easiest thing to do is to put it in your config for your project. Since that rake file will already be loaded, you can just add tasks there (even in their own namespace if you like), and they will be available. If you prefer to have them in a separate rake file then you can simply require them in your config. The config and all included files are loaded before the task is invoked.