###rails mailcatcherが正常に起動しません。
railsのアプリケーション作成の中で、mailcatcherを利用して開発環境でのメールのテストを行おうと思っています。
起動コマンドを打ち、アクセスして更新するとエラーになってしまいます。
調べてみたところ、bundlerやgemのバージョンが違う等の理由が上がりましたが、なかなか解決できません。
[開発環境]
ruby2.5.0
rails5.0系
「ググれ」と言われるレベルかもしれませんが、ご教授いただけると幸いです。
###エラーメッセージ
$ bundle exec mailcatcher gems/bundler-1.16.1/lib/bundler/rubygems_integration.rb:458:in `block in replace_bin_path': can't find executable mailcatcher for gem mailcatcher. mailcatcher is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)
###該当のソースコード
MAIL_TEST_MODE = true Rails.application.routes.default_url_options = { host: 'localhost:8080' } config.action_mailer.raise_delivery_errors = false config.action_mailer.delivery_method = :smtp config.action_mailer.default_url_options = { host: 'localhost:8080' } config.action_mailer.smtp_settings = { address: 'localhost', port: 1025 }


回答1件
あなたの回答
tips
プレビュー