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

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

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

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

Q&A

0回答

389閲覧

heroku で deploy できたが エラーが出て The page you were looking for doesn't exist. と表示される

story_aniki

総合スコア197

Heroku

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

0グッド

0クリップ

投稿2019/12/15 15:19

rails 6.01 CentOS 7.7

ヘロクにデプロイをすると以下のように表示され

[vagrant@localhost memo]$ git push heroku master Counting objects: 14, done. Compressing objects: 100% (8/8), done. Writing objects: 100% (8/8), 1.29 KiB | 0 bytes/s, done. Total 8 (delta 2), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.6.5 remote: -----> Installing dependencies using bundler 1.17.3 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: 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`. remote: Using rake 13.0.1 remote: Using concurrent-ruby 1.1.5 remote: Using i18n 1.7.0              :              : remote: Using turbolinks-source 5.2.0 remote: Using turbolinks 5.2.1 remote: Using webpacker 4.2.2 remote: Bundle complete! 19 Gemfile dependencies, 60 gems now installed. remote: Gems in the groups development and test were not installed. remote: Bundled gems are installed into `./vendor/bundle` remote: Bundle completed (0.48s) remote: Cleaning up the bundler cache. remote: 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`. remote: -----> Installing node-v10.15.3-linux-x64 remote: -----> Installing yarn-v1.16.0 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <top (required)> at /tmp/build_31a7e3fbdbfd7755eb98139685df0b81/config/application.rb:7) remote: yarn install v1.16.0 remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@1.2.11: The platform "linux" is incompatible with this module. remote: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation. remote: [3/4] Linking dependencies... remote: warning " > webpack-dev-server@3.9.0" has unmet peer dependency "webpack@^4.0.0". remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0". remote: [4/4] Building fresh packages... remote: Done in 22.95s. remote: yarn install v1.16.0 remote: [1/4] Resolving packages... remote: [2/4] Fetching packages... remote: info fsevents@1.2.11: The platform "linux" is incompatible with this module. remote: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation. remote: [3/4] Linking dependencies... remote: warning " > webpack-dev-server@3.9.0" has unmet peer dependency "webpack@^4.0.0". remote: warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0". remote: [4/4] Building fresh packages... remote: Done in 4.93s. remote: Compiling... remote: Compiled all packs in /tmp/build_31a7e3fbdbfd7755eb98139685df0b81/public/packs remote: Hash: 60efe71c97239d74f7f6 remote: Version: webpack 4.41.2 remote: Time: 5065ms remote: Built at: 12/15/2019 11:50:05 AM remote: Asset Size Chunks Chunk Names remote: js/application-6297f63bc162c780afc3.js 69.2 KiB 0 [emitted] [immutable] application remote: js/application-6297f63bc162c780afc3.js.gz 17.7 KiB [emitted] remote: js/application-6297f63bc162c780afc3.js.map 205 KiB 0 [emitted] [dev] application remote: js/application-6297f63bc162c780afc3.js.map.gz 51 KiB [emitted] remote: manifest.json 364 bytes [emitted] remote: manifest.json.gz 142 bytes [emitted] remote: Entrypoint application = js/application-6297f63bc162c780afc3.js js/application-6297f63bc162c780afc3.js.map remote: [0] (webpack)/buildin/module.js 552 bytes {0} [built] remote: [1] ./app/javascript/packs/application.js 742 bytes {0} [built] remote: [5] ./app/javascript/channels/index.js 205 bytes {0} [built] remote: [6] ./app/javascript/channels sync _channel.js$ 160 bytes {0} [built] remote: + 3 hidden modules remote: remote: Asset precompilation completed (37.38s) remote: Cleaning assets remote: Running: rake assets:clean remote: DEPRECATION WARNING: Including LoggerSilence is deprecated and will be removed in Rails 6.1. Please use `ActiveSupport::LoggerSilence` instead (called from <top (required)> at /tmp/build_31a7e3fbdbfd7755eb98139685df0b81/config/application.rb:7) remote: -----> Detecting rails configuration remote: remote: ###### WARNING: remote: remote: You set your `config.active_storage.service` to :local in production. remote: If you are uploading files to this app, they will not persist after the app remote: is restarted, on one-off dynos, or if the app has multiple dynos. remote: Heroku applications have an ephemeral file system. To remote: persist uploaded files, please use a service such as S3 and update your Rails remote: configuration. remote: remote: For more information can be found in this article: remote: https://devcenter.heroku.com/articles/active-storage-on-heroku remote: remote: remote: remote: ###### WARNING: remote: remote: We detected that some binary dependencies required to remote: use all the preview features of Active Storage are not remote: present on this system. remote: remote: For more information please see: remote: https://devcenter.heroku.com/articles/active-storage-on-heroku remote: remote: remote: remote: ###### WARNING: remote: remote: No Procfile detected, using the default web server. remote: We recommend explicitly declaring how to boot your server process via a Procfile. remote: https://devcenter.heroku.com/articles/ruby-default-web-server remote: remote: remote: remote: -----> Discovering process types remote: Procfile declares types -> (none) remote: Default types for buildpack -> console, rake, web remote: remote: -----> Compressing... remote: Done: 89M remote: -----> Launching... remote: Released v12 remote: https://memo753951.herokuapp.com/ deployed to Heroku remote: remote: Verifying deploy... done. To https://git.heroku.com/memo753951.git ba3c2d1..d73bbb0 master -> master

heroku open を行うと以下のように表示されます

[vagrant@localhost memo]$ heroku open ▸ Error opening web browser. ▸ Error: Exited with code 3 ▸ ▸ Manually visit https://************* in your browser.

https://devcenter.heroku.com/articles/getting-started-with-rails6#local-setup
を見ながら対処をしたのですが、ページを表示しようとすると The page you were looking for doesn't exist.と表示されてページ自体が存在しない感じになってしまいます
文字数制限の関係であまり詳しく書けませんが、いったい何が原因なのでしょうか?デプロイした時の最後のほうに出てる警告3つに関しては対応したと思うのですが、heroku openをしたときのError: Exited with code 3とは何を指すのか、また、ページが表示されないのはこのエラーのせいなのかだけでも教えていただけないでしょうか

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

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

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

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問