<やったこと>
rails でアプリを作ってみた初心者です。最初にpostgresqlを入れてrais newでアプリを作成し、その後herokuにデプロイしました。デプロイは成功し、その後herokuの自分のページ、またはcould9でheroku openとしたのですがApplication errorとでてきます。
そこで、heroku logs --tailやheroku run rails cで原因を調べてみたのですが、エラーの意味がイマイチわかりません。
<やりたいこと>
デプロイしたアプリがちゃんと動作するようにheroku openなどででてきたURLからアクセスできるようにしたい。
以下にheroku run rails cで出てきたエラーを貼ります。最初は、stm_settings= の単なるスペルミスだと思いました。そしてdevelopment.rbのファイルの中に stm_settings= を見つけたので、smtp_settings = と修正したのですがそれだけで反映されるのでしょうか。または、別のファイルなのでしょうか。ご教示よろしくお願いいたします。
/app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.1/lib/action_mailer/base.rb:582:in method_missing': undefined method
stm_settings=' for ActionMailer::Base:Class (NoMethodError)
Did you mean? smtp_settings=
smtp_settings
smtp_settings?
test_settings=
from /app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.1/lib/action_mailer/railtie.rb:49:in block (3 levels) in <class:Railtie>' from /app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.1/lib/action_mailer/railtie.rb:49:in
each'
from /app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.1/lib/action_mailer/railtie.rb:49:in block (2 levels) in <class:Railtie>' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:71:in
instance_eval'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:71:in block in execute_hook' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:62:in
with_execution_control'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:67:in execute_hook' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:52:in
block in run_load_hooks'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:51:in each' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/lazy_load_hooks.rb:51:in
run_load_hooks'
from /app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.1/lib/action_mailer/base.rb:989:in <class:Base>' from /app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.1/lib/action_mailer/base.rb:437:in
module:ActionMailer'
from /app/vendor/bundle/ruby/2.4.0/gems/actionmailer-5.2.1/lib/action_mailer/base.rb:12:in <main>' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
require'
from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in block in require_with_bootsnap_lfi' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in
register'
from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in require_with_bootsnap_lfi' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in
require'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in block in require' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in
load_dependency'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in require' from /app/app/mailers/application_mailer.rb:1:in
<main>'
from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
block in require_with_bootsnap_lfi'
from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in
require_with_bootsnap_lfi'
from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in
block in require'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in load_dependency' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in
require'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:374:in block in require_or_load' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in
block in load_interlock'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:14:in block in loading' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/concurrency/share_lock.rb:151:in
exclusive'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies/interlock.rb:13:in loading' from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:37:in
load_interlock'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:352:in require_or_load' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in
block in require_or_load'
from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in allow_bootsnap_retry' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in
require_or_load'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:330:in depend_on' from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in
depend_on'
from /app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:244:in require_dependency' from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:478:in
block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:477:in each' from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:477:in
block in eager_load!'
from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:475:in each' from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:475:in
eager_load!'
from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:356:in eager_load!' from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application/finisher.rb:69:in
each'
from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application/finisher.rb:69:in block in <module:Finisher>' from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in
instance_exec'
from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in run' from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:61:in
block in run_initializers'
from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:228:in block in tsort_each' from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component'
from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:431:in each_strongly_connected_component_from' from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:349:in
block in each_strongly_connected_component'
from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in each' from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in
call'
from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in each_strongly_connected_component' from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:226:in
tsort_each'
from /app/vendor/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:205:in tsort_each' from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:60:in
run_initializers'
from /app/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:361:in initialize!' from /app/config/environment.rb:5:in
<main>'
from /app/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
(後略)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/06 01:48
2018/10/08 01:15
2018/10/13 14:35
2018/10/15 05:06
2018/10/22 15:42