From 32f6f72388706d20b883d9b2cd8cda48200dff5d Mon Sep 17 00:00:00 2001 From: demo07 Date: Sun, 9 Dec 2018 00:54:59 +0000 Subject: [PATCH] testing email in production --- app/views/main/refer_a_chef.html.erb | 15 +++++++++++++++ config/environment.rb | 2 +- config/environments/development.rb | 4 ++-- config/environments/production.rb | 3 +-- config/initializers/carrier_wave.rb | 2 +- config/initializers/devise.rb | 2 +- 6 files changed, 21 insertions(+), 7 deletions(-) diff --git a/app/views/main/refer_a_chef.html.erb b/app/views/main/refer_a_chef.html.erb index c90d0d2..101cd27 100644 --- a/app/views/main/refer_a_chef.html.erb +++ b/app/views/main/refer_a_chef.html.erb @@ -53,6 +53,21 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config/environment.rb b/config/environment.rb index 75f242a..3320741 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -7,7 +7,7 @@ ActionMailer::Base.smtp_settings = { :user_name => ENV['SENDGRID_USERNAME'], :password => ENV['SENDGRID_PASSWORD'], - :domain => 'senzzu.com', + :domain => 'heroku.com', :address => 'smtp.sendgrid.net', :port => 587, :authentication => :plain, diff --git a/config/environments/development.rb b/config/environments/development.rb index 159ca79..ecf31e2 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -30,8 +30,8 @@ config.action_mailer.preview_path = "#{Rails.root}/test/mailers/previews" config.action_mailer.raise_delivery_errors = true config.action_mailer.perform_deliveries = true - config.action_mailer.delivery_method = :smtp - config.action_mailer.default_url_options = { host: 'https://scenzu-demo07.c9users.io:8080' } + config.action_mailer.delivery_method = :test + config.action_mailer.default_url_options = { host: 'http://senzzu-rx-demo07.c9users.io' } config.action_mailer.perform_caching = false diff --git a/config/environments/production.rb b/config/environments/production.rb index cb695cf..8853f13 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -85,6 +85,5 @@ config.active_record.dump_schema_after_migration = false config.action_mailer.delivery_method = :smtp - - config.action_mailer.default_url_options = { :host => 'www.senzzu.com', :protocol => 'https'} + config.action_mailer.default_url_options = { :host => 'https://shrouded-harbor-54219.herokuapp.com', :protocol => 'https'} end diff --git a/config/initializers/carrier_wave.rb b/config/initializers/carrier_wave.rb index e2c6037..32a2904 100644 --- a/config/initializers/carrier_wave.rb +++ b/config/initializers/carrier_wave.rb @@ -11,7 +11,7 @@ } config.fog_directory = ENV['S3_BUCKET'] - + end end \ No newline at end of file diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index ffffbff..7ef05ab 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -18,7 +18,7 @@ # Configure the e-mail address which will be shown in Devise::Mailer, # note that it will be overwritten if you use your own mailer class # with default "from" parameter. - config.mailer_sender = 'hello@senzzu.com' + config.mailer_sender = 'no-reply@dinnerhost.co' # Configure the class responsible to send e-mails. # config.mailer = 'Devise::Mailer'