前提・実現したいこと
railsアプリをローカルで作成したので,EC2インスタンスにデプロイし,
公開する際に出たエラーの解決方法がわかりません。
###環境
rails 5.2.3
ruby 2.6.2
nginx
unicorn
発生している問題・エラーメッセージ
unicornやnginxの起動に成功し、webブラウザにて該当IPアドレスにアクセスすると、
ブラウザ上に以下のエラー文が表示されます。
The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved. If you are the application owner check the logs for more information.
試したこと
プリコンパイルができていないことが原因かと思い、
$ rake assets:precompile RAILS_ENV=production
を実行しましたが、ここでも以下のエラーが発生しました。
Yarn executable was not detected in the system.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。