Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ember-CLI -> Heroku Deployment - Cannot access public/ folder

I was able to successfully deploy my Ember application via the buildpack suggested in the documentation. However for some reason, while the application works fine, the public/ folder and all sub-directories are giving me 403 errors. When the image is direct-linked, it gives a 404. I did a CHMOD to 777 on all contents and still is giving me errors.

Is there something that has to be done for heroku configuration in order to view the public folder properly? It works on my localhost.

Using Ember-CLI with Heroku CLI and tonycoco's buildpack.

like image 993
kaiwah.ng Avatar asked Apr 29 '26 01:04

kaiwah.ng


1 Answers

Figured this out a while back, in case anyone wants to know it's because Ember-CLI's fingerprinting conflicting with direct-linking the images.

Adding this in Brocfile.js:

fingerprint: {
    exclude: ['assets/images']
}

Allows the filed to be direct-linked. See the ember-cli documentation for more details.

like image 103
kaiwah.ng Avatar answered May 01 '26 14:05

kaiwah.ng



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!