(Passenger + NGINX) - no layout files loaded

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

(Passenger + NGINX) - no layout files loaded

Thomas Klosinsky
Hi there,

I just installed foodsoft with Passenger and NGINX for production environment.
When running passenger standalone it works great and serves all files correctly, but when using NGINX and passenger it doesn't serve the layout files...
any ideas what I can do to fix?

Best,
Thomas
Reply | Threaded
Open this post in threaded view
|

Re: (Passenger + NGINX) - no layout files loaded

Thomas Klosinsky
this did the trick...

RAILS_ENV=production rake assets:precompile
Reply | Threaded
Open this post in threaded view
|

Re: (Passenger + NGINX) - no layout files loaded

wvengen
Administrator
Great you found it.
Don't forget to run the worker as well (RAILS_ENV=production rake
resque:work), e.g. as an init script (or even as an @reboot cron entry).