質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

614閲覧

herokuへのdeploy

mbaby__8

総合スコア66

Ruby on Rails 6

Ruby on Rails 6は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/07/13 05:08

herokuへのdeployの際エラーが出ていたので直し、

Your app was successfully deployed.でviewを押すと

イメージ説明

イメージ説明

We're sorry, but something went wrong.
If you are the application owner check the logs for more information.

の画面になってしまいます。

Logにあるwarningも直さないと表示されないのでしょうか?

解決方法を教えて頂けると幸いです。

Log

1-----> Ruby app detected 2-----> Installing bundler 2.0.2 3-----> Removing BUNDLED WITH version in the Gemfile.lock 4-----> Compiling Ruby/Rails 5-----> Using Ruby version: ruby-2.5.8 6-----> Installing dependencies using bundler 2.0.2 7 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 8 The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. 9 Using rake 13.0.1 10 Using concurrent-ruby 1.1.6 11 Using i18n 1.8.3 12 Using minitest 5.14.1 13 Using thread_safe 0.3.6 14 Using tzinfo 1.2.7 15 Using zeitwerk 2.3.1 16 Using activesupport 6.0.3.2 17 Using builder 3.2.4 18 Using erubi 1.9.0 19 Using mini_portile2 2.4.0 20 Using nokogiri 1.10.10 21 Using rails-dom-testing 2.0.3 22 Using crass 1.0.6 23 Using loofah 2.6.0 24 Using rails-html-sanitizer 1.3.0 25 Using actionview 6.0.3.2 26 Using rack 2.2.3 27 Using rack-test 1.1.0 28 Using actionpack 6.0.3.2 29 Using nio4r 2.5.2 30 Using websocket-extensions 0.1.5 31 Using websocket-driver 0.7.3 32 Using actioncable 6.0.3.2 33 Using globalid 0.4.2 34 Using activejob 6.0.3.2 35 Using activemodel 6.0.3.2 36 Using activerecord 6.0.3.2 37 Using mimemagic 0.3.5 38 Using marcel 0.3.3 39 Using activestorage 6.0.3.2 40 Using mini_mime 1.0.2 41 Using mail 2.7.1 42 Using actionmailbox 6.0.3.2 43 Using actionmailer 6.0.3.2 44 Using actiontext 6.0.3.2 45 Using msgpack 1.3.3 46 Using bootsnap 1.4.6 47 Using bundler 2.0.2 48 Using ffi 1.13.1 49 Using mini_magick 4.10.1 50 Using ruby-vips 2.0.17 51 Using image_processing 1.11.0 52 Using jbuilder 2.10.0 53 Using kaminari-core 1.2.1 54 Using kaminari-actionview 1.2.1 55 Using kaminari-activerecord 1.2.1 56 Using kaminari 1.2.1 57 Using method_source 1.0.0 58 Using thor 1.0.1 59 Using railties 6.0.3.2 60 Using sprockets 4.0.2 61 Using sprockets-rails 3.2.1 62 Using rails 6.0.3.2 63 Using kaminari-i18n 0.5.0 64 Using pg 1.2.3 65 Using puma 4.3.5 66 Using rack-proxy 0.6.5 67 Using rails-i18n 6.0.0 68 Using sassc 2.4.0 69 Using tilt 2.0.10 70 Using sassc-rails 2.1.2 71 Using sass-rails 6.0.0 72 Using turbolinks-source 5.2.0 73 Using turbolinks 5.2.1 74 Using webpacker 4.2.2 75 Bundle complete! 21 Gemfile dependencies, 66 gems now installed. 76 Gems in the groups development and test were not installed. 77 Bundled gems are installed into `./vendor/bundle` 78 Bundle completed (0.89s) 79 Cleaning up the bundler cache. 80-----> Installing node-v10.15.3-linux-x64 81-----> Installing yarn-v1.16.0 82-----> Detecting rake tasks 83-----> Preparing app for Rails asset pipeline 84 Running: rake assets:precompile 85 yarn install v1.16.0 86 [1/4] Resolving packages... 87 [2/4] Fetching packages... 88 info fsevents@2.1.3: The platform "linux" is incompatible with this module. 89 info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. 90 info fsevents@1.2.13: The platform "linux" is incompatible with this module. 91 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 92 [3/4] Linking dependencies... 93 warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". 94 warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0". 95 [4/4] Building fresh packages... 96 Done in 26.85s. 97 yarn install v1.16.0 98 [1/4] Resolving packages... 99 [2/4] Fetching packages... 100 info fsevents@2.1.3: The platform "linux" is incompatible with this module. 101 info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. 102 info fsevents@1.2.13: The platform "linux" is incompatible with this module. 103 info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 104 [3/4] Linking dependencies... 105 warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". 106 warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0". 107 [4/4] Building fresh packages... 108 Done in 4.88s. 109 Compiling... 110 Compiled all packs in /tmp/build_2d64efa8d4a8636d28798c8913b39dec/public/packs 111 Hash: 30e319745d29b037de5c 112 Version: webpack 4.43.0 113 Time: 11561ms 114 Built at: 07/13/2020 4:58:14 AM 115 Asset Size Chunks Chunk Names 116 js/application-bc41fd1e052affcc101d.js 296 KiB 0 [emitted] [immutable] [big] application 117 js/application-bc41fd1e052affcc101d.js.LICENSE.txt 541 bytes [emitted] 118 js/application-bc41fd1e052affcc101d.js.gz 68.4 KiB [emitted] 119 js/application-bc41fd1e052affcc101d.js.map 812 KiB 0 [emitted] [dev] application 120 js/application-bc41fd1e052affcc101d.js.map.gz 191 KiB [emitted] 121 manifest.json 364 bytes [emitted] 122 manifest.json.gz 142 bytes [emitted] 123 Entrypoint application [big] = js/application-bc41fd1e052affcc101d.js js/application-bc41fd1e052affcc101d.js.map 124 [0] (webpack)/buildin/module.js 552 bytes {0} [built] 125 [2] (webpack)/buildin/global.js 905 bytes {0} [built] 126 [3] ./app/javascript/packs/application.js 863 bytes {0} [built] 127 [6] ./app/javascript/channels/index.js 205 bytes {0} [built] 128 [7] ./app/javascript/channels sync _channel.js$ 160 bytes {0} [built] 129 [12] ./node_modules/@rails/actiontext/app/javascript/actiontext/index.js + 1 modules 2.64 KiB {0} [built] 130 | 2 modules 131 + 7 hidden modules 132 133 WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). 134 This can impact web performance. 135 Assets: 136 js/application-bc41fd1e052affcc101d.js (296 KiB) 137 138 WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. 139 Entrypoints: 140 application (296 KiB) 141 js/application-bc41fd1e052affcc101d.js 142 143 144 WARNING in webpack performance recommendations: 145 You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application. 146 For more info visit https://webpack.js.org/guides/code-splitting/ 147 148 Asset precompilation completed (49.67s) 149 Cleaning assets 150 Running: rake assets:clean 151-----> Detecting rails configuration 152###### WARNING: 153 You set your `config.assets.compile = true` in production. 154 This can negatively impact the performance of your application. 155 156 For more information can be found in this article: 157 https://devcenter.heroku.com/articles/rails-asset-pipeline#compile-set-to-true-in-production 158 159###### WARNING: 160 You set your `config.active_storage.service` to :local in production. 161 If you are uploading files to this app, they will not persist after the app 162 is restarted, on one-off dynos, or if the app has multiple dynos. 163 Heroku applications have an ephemeral file system. To 164 persist uploaded files, please use a service such as S3 and update your Rails 165 configuration. 166 167 For more information can be found in this article: 168 https://devcenter.heroku.com/articles/active-storage-on-heroku 169 170###### WARNING: 171 We detected that some binary dependencies required to 172 use all the preview features of Active Storage are not 173 present on this system. 174 175 For more information please see: 176 https://devcenter.heroku.com/articles/active-storage-on-heroku 177 178###### WARNING: 179 No Procfile detected, using the default web server. 180 We recommend explicitly declaring how to boot your server process via a Procfile. 181 https://devcenter.heroku.com/articles/ruby-default-web-server 182-----> Discovering process types 183 Procfile declares types -> (none) 184 Default types for buildpack -> console, rake, web 185-----> Compressing... 186 Done: 145.5M 187-----> Launching... 188 Released v8 189 https://volvord.herokuapp.com/ deployed to Heroku

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

Heroku Dashboard の右上に More という項目があり、
開くと View Logs という項目があります
クリックすると Web サーバーのログが見られると思うので、
それを頼りに原因を調べます

投稿2020/07/13 05:21

y_shinoda

総合スコア3272

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

mbaby__8

2020/07/13 07:58

2020-07-13T05:00:41.353648+00:00 app[web.1]: [b872e5c3-00f9-45bb-83f1-002499bcf4dc] app/controllers/posts_controller.rb:96:in `index' 2020-07-13T05:00:41.356874+00:00 heroku[router]: at=info method=GET path="/" host=volvord.herokuapp.com request_id=b872e5c3-00f9-45bb-83f1-002499bcf4dc fwd="122.135.105.184" dyno=web.1 connect=0ms service=106ms status=500 bytes=1827 protocol=https 2020-07-13T05:34:20.119553+00:00 heroku[web.1]: Idling 2020-07-13T05:34:20.122168+00:00 heroku[web.1]: State changed from up to down 2020-07-13T05:34:21.591539+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2020-07-13T05:34:21.624941+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish 2020-07-13T05:34:21.626387+00:00 app[web.1]: === puma shutdown: 2020-07-13 05:34:21 +0000 === 2020-07-13T05:34:21.626389+00:00 app[web.1]: - Goodbye! 2020-07-13T05:34:21.626523+00:00 app[web.1]: Exiting 2020-07-13T05:34:21.800438+00:00 heroku[web.1]: Process exited with status 143 でした。 heroku runで何か打たないとダメなんですかね?
y_shinoda

2020/07/13 08:11

質問の立て直しをお願いします その際、このコメント欄のログと共に、 Rails の app/controllers/posts_controller.rb のコードを質問欄に記載お願いします こちらの質問へのリンクを記載することも回答を得るのに有効です - タイトルが検索に引っかかって見に来た人が、タイトルの課題を解決するシンプルな回答を見ることができます - 新たに質問を立てれば、質問者・回答者ともに新たにポイントが獲得できます
mbaby__8

2020/07/14 08:36

controller修正して、heroku run rails db:migrateでできました。 ありがとうございます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問