Forum: Ruby on Rails rake db:seed on EC2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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?
I
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"
  end
end

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
RAILS_ENV=production"
servers: ["testing.thestash.com"]
connection failed for: testing.thestash.com (Timeout::Error: execution
expired)

Is there something I could be missing?

I'm using rubber to deploy to my ec2 instance.
This topic is locked and can not be replied to.