###解決したいこと
ruby on rails と bootstrapを使って作成したアプリケーションをherokuにpushすると、
WARNING!が出てきてしまいます。
デプロイはできても、開こうとするとApplication Errorとなってしまいます。
WARNING!を出ないようにし、正常にアプリを開けるようにしたいです。
エラー内容
remote: -----> Pruning devDependencies remote: yarn install v1.12.0 remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: [3/4] Linking dependencies... remote: warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3". remote: [4/4] Building fresh packages... remote: warning Ignored scripts due to flag. remote: Done in 0.84s. remote: remote: -----> Build succeeded! remote: ! Unmet dependencies don't fail yarn install but may cause runtime issues remote: https://github.com/npm/npm/issues/7494 remote: remote: -----> Discovering process types remote: Procfile declares types -> web
試したこと
npmのアップデートをしましたが、改善されませんでした。
補足
バリバリの初心者なので、そんなの常識ってことだったらごめんなさい????
温かい心でご教示いただけると幸いですm(_ _)m
追記
一つ前の質問の続きです!
すみません、node.jsの仕組みをよく理解していなかったみたいです。
使っているのはRuby on Railsなので、前の質問の解決の仕方から間違っているのでしょうか…?
追記2
Procfileに
web: bundle exec puma -C config/puma.rb
と記載してpushしましたが変わりませんでした。
heroku logs をみると、
2018-10-04T07:14:57.490379+00:00 heroku[web.1]: State changed from starting to crashed 2018-10-04T07:14:57.492407+00:00 heroku[web.1]: State changed from crashed to starting 2018-10-04T07:14:57.472342+00:00 heroku[web.1]: Process exited with status 1 2018-10-04T07:15:00.228488+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb` 2018-10-04T07:15:03.300048+00:00 heroku[web.1]: Process exited with status 1 2018-10-04T07:15:03.322587+00:00 heroku[web.1]: State changed from starting to crashed 2018-10-04T07:15:03.231232+00:00 app[web.1]: /usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': Could not find 'bundler' (1.1 7.0.pre.1) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) 2018-10-04T07:15:03.231289+00:00 app[web.1]: To update to the lastest version installed on your system, run `bundle update --bundler`. 2018-10-04T07:15:03.231292+00:00 app[web.1]: To install the missing version, run `gem install bundler:1.17.0.pre.1` 2018-10-04T07:15:03.231354+00:00 app[web.1]: from /usr/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path' 2018-10-04T07:15:03.231379+00:00 app[web.1]: from /app/bin/bundle:3:in `<main>' 2018-10-04T07:15:13.004130+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=rocky-ocean-42853.herok uapp.com request_id=11b8bac5-ee1f-4cd4-93b2-d0e8f6eb0c71 fwd="202.235.128.8" dyno= connect= service= status=503 bytes= protocol=https 2018-10-04T07:15:13.393198+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=rocky-ocean- 42853.herokuapp.com request_id=c4c0f199-fc11-4985-b769-ab9e04fcfc28 fwd="202.235.128.8" dyno= connect= service= status=503 bytes= prot
rails consoleの結果
Traceback (most recent call last): 4: from /app/bin/rails:3:in `<main>' 3: from /app/bin/rails:3:in `load' 2: from /app/bin/spring:8:in `<top (required)>' 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler (LoadError)
bundlerのファイルが読み込まれていないのでしょうか?
回答1件
あなたの回答
tips
プレビュー