ykpp1g
Last Updated: February 25, 2016
·
4.814K
· leemachin

Seed your production db with a capistrano one-liner

God forbid you have a situation where this is necessary,...

cap invoke COMMAND="cd /your/app/dir; RAILS_ENV=production bundle exec rake db:seed"

... turned out that we did.

If you need to do this often, then you can write a task instead.

Say Thanks
Respond

1 Response
Add your response

7674
A40a216d03a6e4022e4a343d7708bd3c

OMG this just works ! unlike many others tries

over 1 year ago ·