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.
on 2012-06-22 19:24
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.