-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making it work with Phusion Passenger #23
Comments
Hmmm, I'm not sure why moving to Phusion Passenger on heroku would affect how this app works. The font assets should still be initially served by the Rails app (giving this gem the opportunity to set it's headers). Just make sure you aren't precompiling the assets and you should be fine. |
Well, I am precompiling assets, on the heroku side. But I used to do that also earlier and the gem still helped me. Here are the different curls results I get:
And here's my config:
Maybe there's something I missed here ? |
If you are precompiling assets then nginx is probably serving the assets from the filesystem and skipping Rails altogether (hence skipping this gem). Which is fine, it just means you need to set the Access Control headers using nginx. I'm not sure if that's possible with the nginx on heroku (I've never used this particular setup myself), but you should be able to google around for "nginx access control headers" and find your way. |
Well, the googling around did not give me much success unfortunately. 😒 This google group discussion mentions that the option will be available in a near future : https://groups.google.com/forum/#!topic/phusion-passenger/nskVxnxFssA |
I recently moved to Phusion Passenger. I read (here) that it runs a nginx in front not to query main app.
My guess is that it's what breaks it again. Is there something I can do against this?
This gem is awesome, I struggled trying many solutions and this was my final solution to achieve having cdn fonts in my app. Thanks for support!
The text was updated successfully, but these errors were encountered: