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.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/_1Rl-L6pcz0J.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.