Note that there are some explanatory texts on larger screens.

plurals
  1. PORails production routes issue
    primarykey
    data
    text
    <p>In production I get the following in the log:</p> <blockquote> <p>I, [2013-11-28T10:37:59.495396 #1181] INFO -- : Started GET "/javascripts/application.js" for 91.104.133.126 at 2013-11-28 10:37:59 +0000 F, [2013-11-28T10:37:59.497931 #1181] FATAL -- : ActionController::RoutingError (No route matches [GET] "/javascripts/application.js"):</p> </blockquote> <p>And:</p> <blockquote> <p>I, [2013-11-28T10:41:05.611348 #1181] INFO -- : Started GET "/" for 91.104.133.126 at 2013-11-28 10:41:05 +0000 I, [2013-11-28T10:41:05.615742 #1181] INFO -- : Processing by PagesController#home as HTML I, [2013-11-28T10:41:05.626276 #1181] INFO -- : Rendered pages/home.html.erb within layouts/application (7.5ms) I, [2013-11-28T10:41:05.629343 #1181] INFO -- : Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.8ms) I, [2013-11-28T10:41:05.817024 #1181] INFO -- : Started GET "/stylesheets/application.css" for 91.104.133.126 at 2013-11-28 10:41:05 +0000 F, [2013-11-28T10:41:05.819748 #1181] FATAL -- : ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"):</p> </blockquote> <p>This didn't happen during development.</p> <p>App is runnig with RVM &amp; NginX &amp; Passenger, all latest version, fresh install.</p> <p><strong>Update 1:</strong></p> <p>After running <code>RAILS_ENV=production bundle exec rake assets:precompile</code> I get these:</p> <blockquote> <p>ActionController::RoutingError (No route matches [GET] "/assets/application-0292b59e3ea25ff21b6f72e062924c42.css"):<br> actionpack (4.0.1) lib/action_dispatch/</p> <p>ActionController::RoutingError (No route matches [GET] "/javascripts/vendor/modernizr.js"):</p> <p>ActionController::RoutingError (No route matches [GET] "/assets/application-2f1ac76c2ad0b69f7bbab4b9d9dca4b8.js"):</p> </blockquote> <p><strong>Update 2:</strong></p> <p>Output of <code>rake routes</code></p> <pre><code> Prefix Verb URI Pattern Controller#Action images_new GET /images/new(.:format) images#new users_sign_up GET /users/sign_up(.:format) users#sign_up images_edit GET /images/edit(.:format) images#edit images_index GET /images/index(.:format) images#index images_show GET /images/show(.:format) images#show posts_new GET /posts/new(.:format) posts#new posts_edit GET /posts/edit(.:format) posts#edit posts_update GET /posts/update(.:format) posts#update posts_destroy GET /posts/destroy(.:format) posts#destroy new_user_session GET /users/sign_in(.:format) devise/sessions#new user_session POST /users/sign_in(.:format) devise/sessions#create destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel user_registration POST /users(.:format) devise/registrations#create new_user_registration GET /users/sign_up(.:format) devise/registrations#new edit_user_registration GET /users/edit(.:format) devise/registrations#edit PATCH /users(.:format) devise/registrations#update PUT /users(.:format) devise/registrations#update DELETE /users(.:format) devise/registrations#destroy pages_home GET /pages/home(.:format) pages#home posts GET /posts(.:format) posts#index POST /posts(.:format) posts#create new_post GET /posts/new(.:format) posts#new edit_post GET /posts/:id/edit(.:format) posts#edit post GET /posts/:id(.:format) posts#show PATCH /posts/:id(.:format) posts#update PUT /posts/:id(.:format) posts#update DELETE /posts/:id(.:format) posts#destroy images GET /images(.:format) images#index POST /images(.:format) images#create new_image GET /images/new(.:format) images#new edit_image GET /images/:id/edit(.:format) images#edit image GET /images/:id(.:format) images#show PATCH /images/:id(.:format) images#update PUT /images/:id(.:format) images#update DELETE /images/:id(.:format) images#destroy root GET / pages#home </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload