herokuのリモートリポジトリへのプッシュを行い、URLをブラウザで検索すると次のような表示の画面となります。
“The page you were looking for doesn't exist.”
リモートリポジトリへのプッシュのコマンド
$ git push heroku master
上記のコマンド入力後の警告文
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. remote: ###### WARNING: remote: remote: You have not declared a Ruby version in your Gemfile. remote: To set your Ruby version add this line to your Gemfile: remote: ruby '2.5.5' remote: # See https://devcenter.heroku.com/articles/ruby-versions for more information. remote: ###### WARNING: remote: remote: You set your `config.assets.compile = true` in production. remote: This can negatively impact the performance of your application. remote: remote: For more information can be found in this article: remote: https://devcenter.heroku.com/articles/rails-asset-pipeline#compile-set-to-true-in-production 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
デプロイは成功していますか?失敗していますか?
もし、失敗しているのであれば警告文ではなくエラー文を提示してください。
一度ubuntuを閉じた後、改めて$ git push heroku masterと入力しました。
すると、以下のメッセージが表示されました。
Everything up-to-date
これがデプロイの成功を意味するのか失敗を意味するのか分かりません。
既にデプロイできているということでしょう
デプロイできているのにページが存在しないということは
rootを設定していないとかそういうことですかね。
適当に確実に存在するURLにアクセスしてみては?
それに先ほど気付きました。
ただrails new でプロジェクトを作っただけでした。
ド素人の凡ミスです。
ただ、rails g controller を入力すると
warning: Insecure world writable dir /home//.rbenv/versions in PATH, mode 040777
というエラーが表示されます。
ググった結果、”過剰な権限がある場合のRubyの警告”らしいのですが、対応策に困っています。
これは、別の質問として立てさせていただきます。
ありがとうございました。
回答1件
あなたの回答
tips
プレビュー