Skip to content

Commit

Permalink
testing email in production
Browse files Browse the repository at this point in the history
  • Loading branch information
demesvardestin committed Dec 9, 2018
1 parent 1c5099b commit 32f6f72
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
15 changes: 15 additions & 0 deletions app/views/main/refer_a_chef.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@
</form>
</div>
</div>

<!--<div class="card" style="margin-top: 20px;">-->
<!-- <div class="card-header background-cyan">-->
<!-- Invites sent-->
<!-- </div>-->

<!-- <div class="card-body">-->
<!-- <div class="row">-->
<!-- <div class="col-md-12">-->

<!-- <hr>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
</div>
</div>
</section>
2 changes: 1 addition & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion config/initializers/carrier_wave.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

config.fog_directory = ENV['S3_BUCKET']

end

end
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]'
config.mailer_sender = '[email protected]'

# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'
Expand Down

0 comments on commit 32f6f72

Please sign in to comment.