heroku - Where are my assets files stored? -
as have read, heroku recommends pointing cdn directly @ dynos rather using asset_sync, therefore did this:
# config/environments/production.rb config.action_controller.asset_host = "<my distribution subdomain>.cloudfront.net"
the origin of distribution dcaclab.com
cnames of distribution assets.dcaclab.com
so, after pushed rails 4 app heroku, found assets served cloudfront's distribution, like:
http://<my distribution subdomain>.cloudfront.net/assets/features/multiple%20circuits-edbfca60b3a74e6e57943dc72745a98c.jpg
what don't understand, how assets files got uploaded cloudfront's distribution?! also, can find them? thought uploaded s3 bucket assets
empty.
can enlighten me please?
if files being served cloudfront distribution , not being pulled s3 bucket "assets" thought, have set cloudfront distribution use custom origin such web server (s3 buckets normal/standard origins).
if have set cloudfront distribution use web server origin, cloudfront pull files web server before caching them on different edge locations (the pulling , caching automatically done cloudfront when user access resources through "distributionname.cloudfront.net" domain).
by way, side note, ran "dig assets.dcaclab.com" resolves "assets.dcaclab.com.s3.amazonaws.com".
Comments
Post a Comment