Last Updated: February 25, 2016
·
6.263K
· 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.

1 Response
Add your response

OMG this just works ! unlike many others tries

over 1 year ago ·