4 ms·
How would one use this on Heroku? It doesn't support static file transfers allegedly... and per Heroku they require your app server to serve them by default. h
by randall 12y ago
How would one use this on Heroku? It doesn't support static file transfers allegedly... and per Heroku they require your app server to serve them by default.
https://github.com/heroku/rails_12factor#rails-4-serve-static-assets https://github.com/heroku/rails_12factor#rails-4-serve-stati...
Any ideas?
- _raul 12y agoUsing a CDN (Cloudfront, Fastly add-on, ...) is a common choice, as it allows delivering assets from a closer datacenter to the client and removes load from the app server.
- randall 12y agoYeah but getting assets to said cdn is annoyingish without having app server origin, I'd argue.
- snikch 12y agoYou use a rack middleware to handle static files, which is how Rails handles it by default. So, unless I'm completely mistaken (which I may well be), this should work just fine?
- randall 12y agoWouldn't that sit behind the app server? (Equally mistaken potential. :)