How do you access assets in a Pakyow app on heroku? -


problem: pakyow app deployed heroku , js , css sourced/linked in template head 404.

i assume problem stemming heroku, rather not 1 aware of. far know, heroku allows static assets in public directory.

anyway, looking helpful pointers pakyow users.

the app (currently) @ http://pakyow-go.herokuapp.com , repo can found @ http://github.com/jphager2/pakyow-go.

this unfortunate default config option in released version. around it, add production configuration block in app.rb:

app.static = true 

the reason works way out of box in production cases don't want app serving static files. instead responsibility of http server. on heroku though, want app server serve static files unless host them cdn.


Comments