Single comment thread
See full discussion

Hey man, let me share one cool trick with you! :) There is no need to move assets to the CDN provider manually. You can do the following. Firstly, deploy everything to heroku and make sure that assets are available. Then you need to get an AWS account and use cloudfront. Cloudfront allows to set up a CDN proxy. You just provide it with a link to your asset path on your website. Then you create a CDN distribution and use it in your html. In order to see local images during development you can set up a switch to local path based on the current environment. The link would switch to localhost locally and to CDN distribution in production.

Home
Search
Messages
Notifications
More