JavaScript not working in Rails app in production

蹲街弑〆低调 提交于 2019-12-12 01:00:53

问题


I just moved my Rails app to a production server through git and none of my JavaScript is working. I ran rake assets:precompile and nothing. My Rails production log and my nginx log show no errors. Inside public/assets I see application-###.js. Does anyone have any ideas or where else I can look?

My production.rb log looks like so:

Connecting to database specified by database.yml
Started GET "/" for 99.179.144.13 at 2013-04-03 04:13:42 +0000
Processing by StaticPagesController#index as HTML
  Rendered static_pages/index.html.erb within layouts/application (3.5ms)
  Rendered layouts/_menu.html.erb (2.6ms)
  Rendered layouts/_sidebar_left.html.erb (9.5ms)
  Rendered layouts/_sidebar_right.html.erb (3.6ms)
Completed 200 OK in 118ms (Views: 105.3ms | ActiveRecord: 12.4ms)

来源:https://stackoverflow.com/questions/15778847/javascript-not-working-in-rails-app-in-production

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!