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.
Written by Lee Machin
Related protips
1 Response
OMG this just works ! unlike many others tries
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#