Heroku上で動かない
すると変更がherokuにも反映される。と思ったら動かなくなった…。
The page you were looking for doesn't exist
って言われる。
どうやら同様の問題は他にも起きているようなので、取り敢えず以下を試す。
プレコンパイルを有効にする。
# config/environments/production.rb内部
config.assets.compile = false
# ↓
config.assets.compile = true
# push時に以下のメッセージが流れてるのでちゃんと出来てるはず
- > Preparing app for Rails asset pipeline
Running: rake assets:precompile
Asset precompilation completed (14.30s)
と思ったら以下のコマンドを見つけた。
$ rails server -e production
これでちゃんと動いてんのか?って事で動かしてみると
We're sorry, but something went wrong.
動いてない!って事はローカルで既に問題が発生してるってか。pruductionで動いてないってことはdb絡みな気がするな…。
参考:Heroku problem : The page you were looking for doesn't exist