Forum: Ruby on Rails rake db:seed on EC2

B7ae888fe561d862e118b313ec4f205d?d=identicon&s=25 bertly_the_coder (Guest)
on 2012-06-22 19:24
(Received via mailing list)
Hey guys,

How would one run the equivalent of rake db:seed on their EC2 instance?
added this to my deploy.rb file:

namespace :deploy do
  desc "Populates the Production Database"
  task :seed do
    puts "\n\n=== Populating the Production Database! ===\n\n"
    run "cd #{current_path}; rake db:seed RAILS_ENV=production"

But when running cap deploy:seed, I got:

* executing `deploy:db:seed'

=== Populating the Production Database! ===

* executing "cd /mnt/thestashbox-production/current; rake db:seed
servers: [""]
connection failed for: (Timeout::Error: execution

Is there something I could be missing?

I'm using rubber to deploy to my ec2 instance.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.