简体   繁体   中英

Rails in production not rendering application.html.erb

I know it's hard/impossible to troubleshoot without our code but I'm hoping someone might give us a clue as to where to BEGIN looking to troubleshoot this problem? production.log looks normal and application is functional..just NO stylesheets or header/footer because application.html.erb layout isn't being called...which is apparent when we view source: no <html> <head> <body> etc...

Works fine in Development!?!

Passenger 3, Apache 2, Rails 3.0.7, Ruby 1.9.2p180 RVM 1.6.5

Update : adding environment info per request

production.rb & development.rb are stock from initial rails new appname -T -J . This app is bare-bones (one resource) just trying to get round-trip functional on a new client's server.

Update2 strangely when I touch approot/tmp/restart.txt to restart Passenger per their docs: "Passenger will restart on next request" the file restart.txt remains. So A) Passenger is not seeing it and restarting...or B) Passenger doesn't delete it automatically which seems abnormal.

So, wondering now if my application may be running on the System's Ruby/Rails (2.3.5?) and not the RVM version. How to verify?

It's probably the HAML gem that's causing you trouble. You probably have a blank .haml file(if you're still using erbs) or a blank erb file if you're using mostly HAML files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM