Rails 3.1.3 on Heroku: (No route matches [GET] "/assets/rails.png") -



Rails 3.1.3 on Heroku: (No route matches [GET] "/assets/rails.png") -

i've installed few basic apps on heroku without problem, , 1 (rails 3.1.3) seemed fine in showed rails welcome page

public/index.html.erb

but when removed page , set

root :to => 'users#index'

i got problem. in heroku logs said there's routing error

actioncontroller::routingerror (no route matches [get] "/assets/rails.png"):

does know about?

2012-01-14t21:48:29+00:00 heroku[web.1]: process exited 2012-01-14t21:48:33+00:00 app[web.1]: >> lean web server (v1.2.6 codename crazy delicious) 2012-01-14t21:48:33+00:00 app[web.1]: >> maximum connections set 1024 2012-01-14t21:48:33+00:00 app[web.1]: >> listening on 0.0.0.0:32570, ctrl+c stop 2012-01-14t21:48:34+00:00 heroku[web.1]: state changed starting 2012-01-14t21:48:35+00:00 app[web.1]: cache: [get /] miss 2012-01-14t21:48:36+00:00 app[web.1]: 2012-01-14t21:48:36+00:00 app[web.1]: 2012-01-14t21:48:36+00:00 app[web.1]: started "/assets/rails.png" 216.251.147.10 @ 2012-01-14 13:48:36 -0800 2012-01-14t21:48:36+00:00 app[web.1]: 2012-01-14t21:48:36+00:00 app[web.1]: actioncontroller::routingerror (no route matches [get] "/assets/rails.png"): 2012-01-14t21:48:36+00:00 app[web.1]: 2012-01-14t21:48:36+00:00 app[web.1]: 2012-01-14t21:48:36+00:00 app[web.1]: 2012-01-14t21:48:36+00:00 app[web.1]: cache: [get /assets/rails.png] miss 2012-01-14t21:48:35+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=19ms status=200 bytes=5907 2012-01-14t21:48:36+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=30ms status=404 bytes=728 2012-01-14t21:48:46+00:00 app[web.1]: cache: [get /] miss 2012-01-14t21:48:46+00:00 app[web.1]: 2012-01-14t21:48:46+00:00 app[web.1]: 2012-01-14t21:48:46+00:00 app[web.1]: started "/assets/rails.png" 216.251.147.10 @ 2012-01-14 13:48:46 -0800 2012-01-14t21:48:46+00:00 app[web.1]: 2012-01-14t21:48:46+00:00 app[web.1]: actionc 2012-01-14t21:48:46+00:00 app[web.1]: 2012-01-14t21:48:46+00:00 app[web.1]: 2012-01-14t21:48:46+00:00 app[web.1]: 2012-01-14t21:48:46+00:00 app[web.1]: cache: [get /assets/rails.png] miss 2012-01-14t21:48:46+00:00 app[web.1]: cache: [get /favicon.ico] miss 2012-01-14t21:48:46+00:00 heroku[router]: mmcarrier.heroku.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=3ms status=200 bytes=0 2012-01-14t21:48:46+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=6ms status=200 bytes=5907 2012-01-14t21:48:46+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=4ms status=404 bytes=728 2012-01-14t21:48:59+00:00 app[web.1]: cache: [get /] miss 2012-01-14t21:48:59+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=5ms status=200 bytes=5907 2012-01-14t21:48:59+00:00 app[web.1]: 2012-01-14t21:48:59+00:00 app[web.1]: 2012-01-14t21:48:59+00:00 app[web.1]: started "/assets/rails.png" 216.251.147.10 @ 2012-01-14 13:48:59 -0800 2012-01-14t21:48:59+00:00 app[web.1]: 2012-01-14t21:48:59+00:00 app[web.1]: actioncontroller::routingerror (no route matches [get] "/assets/rails.png"): 2012-01-14t21:48:59+00:00 app[web.1]: 2012-01-14t21:48:59+00:00 app[web.1]: 2012-01-14t21:48:59+00:00 app[web.1]: 2012-01-14t21:48:59+00:00 app[web.1]: cache: [get /assets/rails.png] miss 2012-01-14t21:48:59+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=3ms status=404 bytes=728 2012-01-14t21:49:18+00:00 app[web.1]: 2012-01-14t21:49:18+00:00 app[web.1]: 2012-01-14t21:49:18+00:00 app[web.1]: started "/assets/rails.png" 216.251.147.10 @ 2012-01-14 13:49:18 -0800 2012-01-14t21:49:18+00:00 app[web.1]: 2012-01-14t21:49:18+00:00 app[web.1]: actioncontroller::routingerror (no route matches [get] "/assets/rails.png"): 2012-01-14t21:49:18+00:00 app[web.1]: 2012-01-14t21:49:18+00:00 app[web.1]: 2012-01-14t21:49:18+00:00 app[web.1]: 2012-01-14t21:49:18+00:00 app[web.1]: cache: [get /assets/rails.png] miss 2012-01-14t21:49:18+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=4ms status=404 bytes=728 2012-01-14t21:49:33+00:00 app[web.1]: cache: [get /] miss 2012-01-14t21:49:33+00:00 app[web.1]: 2012-01-14t21:49:33+00:00 app[web.1]: 2012-01-14t21:49:33+00:00 app[web.1]: started "/assets/rails.png" 216.251.147.10 @ 2012-01-14 13:49:33 -0800 2012-01-14t21:49:33+00:00 app[web.1]: 2012-01-14t21:49:33+00:00 app[web.1]: actioncontroller::routingerror (no route matches [get] "/assets/rails.png"): 2012-01-14t21:49:33+00:00 app[web.1]: 2012-01-14t21:49:33+00:00 app[web.1]: 2012-01-14t21:49:33+00:00 app[web.1]: cache: [get /assets/rails.png] miss 2012-01-14t21:49:33+00:00 app[web.1]: 2012-01-14t21:49:34+00:00 app[web.1]: cache: [get /favicon.ico] miss 2012-01-14t21:49:33+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=6ms status=200 bytes=5907 2012-01-14t21:49:33+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=4ms status=404 bytes=728 2012-01-14t21:49:34+00:00 heroku[router]: mmcarrier.heroku.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=3ms status=200 bytes=0 2012-01-14t21:50:21+00:00 app[web.1]: cache: [get /] miss 2012-01-14t21:50:21+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=5907 2012-01-14t21:50:21+00:00 app[web.1]: 2012-01-14t21:50:21+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=4ms status=404 bytes=728 2012-01-14t21:50:21+00:00 app[web.1]: started "/assets/rails.png" 216.251.147.10 @ 2012-01-14 13:50:21 -0800 2012-01-14t21:50:21+00:00 app[web.1]: 2012-01-14t21:50:21+00:00 app[web.1]: 2012-01-14t21:50:21+00:00 app[web.1]: cache: [get /assets/rails.png] miss 2012-01-14t21:50:21+00:00 app[web.1]: actioncontroller::routingerror (no route matches [get] "/assets/rails.png"): 2012-01-14t21:50:21+00:00 app[web.1]: 2012-01-14t21:50:21+00:00 app[web.1]: 2012-01-14t21:50:21+00:00 app[web.1]: 2012-01-14t21:52:42+00:00 heroku[slugc]: slug compilation started 2012-01-14t21:52:54+00:00 heroku[api]: deploy 983a24d m73mitchell@gmail.com 2012-01-14t21:52:54+00:00 heroku[api]: release v8 created m73mitchell@gmail.com 2012-01-14t21:52:54+00:00 heroku[web.1]: state changed bouncing 2012-01-14t21:52:54+00:00 heroku[web.1]: state changed bouncing created 2012-01-14t21:52:54+00:00 heroku[web.1]: state changed created starting 2012-01-14t21:52:55+00:00 heroku[slugc]: slug compilation finished 2012-01-14t21:53:01+00:00 heroku[web.1]: state changed starting 2012-01-14t21:53:05+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=37ms status=404 bytes=728 2012-01-14t21:53:17+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=5ms status=404 bytes=728 2012-01-14t21:53:36+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=2ms status=404 bytes=728 2012-01-14t21:53:38+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=107ms status=500 bytes=728 2012-01-14t21:53:40+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=20ms status=500 bytes=728 2012-01-14t21:53:49+00:00 heroku[run.1]: state changed created starting 2012-01-14t21:53:52+00:00 heroku[run.1]: state changed starting 2012-01-14t21:53:57+00:00 heroku[run.1]: state changed finish 2012-01-14t21:53:57+00:00 heroku[run.1]: process exited 2012-01-14t21:55:15+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=35ms status=404 bytes=728 2012-01-14t21:55:17+00:00 heroku[router]: mmcarrier.heroku.com/assets/rails.png dyno=web.1 queue=0 wait=0ms service=3ms status=404 bytes=728 2012-01-14t21:55:22+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=12ms status=500 bytes=728 2012-01-14t21:56:18+00:00 heroku[router]: mmcarrier.heroku.com/ dyno=web.1 queue=0 wait=0ms service=12ms status=500 bytes=728

it looks may not have precompiled assets before pushed heroku, try:

rake assets:precompile git add together . etc etc

i think should help. more information, see here: http://devcenter.heroku.com/articles/rails31_heroku_cedar

ruby-on-rails heroku

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -