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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJun 22, '12 at 5:22p
activeJun 22, '12 at 5:22p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Bertly_the_coder: 1 post

People

Translate

site design / logo © 2022 Grokbase