Skip to content

Commit

Permalink
Drop mailcatcher support (#470)
Browse files Browse the repository at this point in the history
Bye bye mailcatcher
  • Loading branch information
christiannelson authored Dec 17, 2020
1 parent 1df9f4d commit 8e9be41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ Run `guard` to automatically listen for file changes and run the appropriate spe

$ bundle exec guard

### Using Mailcatcher

$ gem install mailcatcher
$ mailcatcher
$ open http://localhost:1080/

Learn more at [mailcatcher.me](http://mailcatcher.me/). And please don't add mailcatcher to the Gemfile.

### Using ChromeDriver

The ChromeDriver version used in this project is maintained by the [webdrivers](https://github.com/titusfortner/webdrivers) gem. This is means that the
Expand Down
16 changes: 2 additions & 14 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,8 @@
# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local

# An opinionated ActionMailer config for development:
# - If mailcatcher is running when the app boots, use it.
# - If not, use Rails' built-in :test delivery-method.
# - In either case, always raise delivery errors.
# - Other configuration here follows standard Rails conventions.
begin
mailcatcher_port = 1025
sock = TCPSocket.new("localhost", mailcatcher_port)
sock.close
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { address: "localhost", port: mailcatcher_port }
rescue Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL
config.action_mailer.delivery_method = :test
end
# Default to the :test mailer and raise errors.
config.action_mailer.delivery_method = :test
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_caching = false
config.action_mailer.default_url_options = { host: "localhost:3000" }
Expand Down

0 comments on commit 8e9be41

Please sign in to comment.