Forum: Ruby on Rails rake db:seed on EC2

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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.
This topic is locked and can not be replied to.