LoginSignup
58
59

More than 5 years have passed since last update.

herokuで「The page you were looking for doesn’t exist.」エラーが出るときの対処法

Last updated at Posted at 2013-05-21

herokuに Railsのプロジェクトをデプロイすると、オフィシャルドキュメントに従って作業をすると、次のようなエラーメッセージが表示されてしまいます。

The page you were looking for doesn’t exist.

これは、Rails 3.2以降で発生する現象で、アセット周りのプリコンパイルが影響しているのだとか。これを回避するには、オフィシャルドキュメントの手順に加えて次の手順をしなければならないようです。

ローカルに Railsのプロジェクトを作ったら、gitで pushをする前に

rake assets:precompile

と打ち込みます。後は、デプロイすればOK。結構はまります。

58
59
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
58
59