ember.js - ember-cli assets not loading rails 4 -
i have page requesting 'assets/ember/scalus-services.js'. these assets did not exist, since assets built ember cli md5 fingerprint
i.e - 'ember/assets/scalus-services-000aaa111222eee333333111222eee33.js'
hence received:
failed load resource: server responded status of 404 (not found)
when using asset helpers asset_path, path resolved 1 of 3 ways
it looks in manifest-.json (loaded memory rails.application.assets) under 'assets' object. assets object path pass helper 'ember/scalus-services.js' key , fingerprinted file name value. value includes cloudfront prepended path (which set in brocfile.js) , rails asset path ('assets/')
if file not found in manifest file, search asset paths in rails file
if isn't found in rails asset paths, path served is
the problem though servers had manifest file correct entries in 'public/assets'. yet served path is.
this leads me believe bug sprockets or perhaps deploy process.
however: bug didn't happen after deployment. started 12 hours after deployed.
Comments
Post a Comment