migration fails on heroku due to activeadmin mailer migration fails on heroku due to activeadmin mailer heroku heroku

migration fails on heroku due to activeadmin mailer


Try installing the Sendgrid addon:

heroku addons:add sendgrid:starter

If you are deploying to the Aspen or Bamboo stacks, it should work right away. If you are using the Cedar stack, you need to add an additional initializer:

#config/initializers/mail.rbActionMailer::Base.smtp_settings = {  :address        => 'smtp.sendgrid.net',  :port           => '587',  :authentication => :plain,  :user_name      => ENV['SENDGRID_USERNAME'],  :password       => ENV['SENDGRID_PASSWORD'],  :domain         => 'heroku.com'}ActionMailer::Base.delivery_method = :smtp

Taken from: http://devcenter.heroku.com/articles/sendgrid


This is confusing me a little:

Connection refused - connect(2)

Do you have your mail setup? Are you using SendGrid or similar? Remember that Heroku don't provide email services directly.

http://devcenter.heroku.com/articles/smtp