I’ve put the assets folder and its contents in GIT so that can’t be the reason the Assets folder is not being found by Heroku. Also note that there are 8 images in my Assets folder even though one only is shown under Resources. (smart loading?)
Hi @martijn, I’m glad that you found a solution. However, static images should be supported on Heroku. Is the assets folder at the root of your git repository? It should be, otherwise you have to change the static_folder attribute of dash.Dash. Also, did you try with a simple html.Img instead of dbc.CardImg?
i am also facing the same issue, on heroku my images are not showing, if you have solution could you please post it. i also tried to upload images in google drive and made them shareable but that also not worked.
Odd…I’m using static images in Heroku (.png though…not .jpg but that shoudn’t matter) w/o issues. Could it be that you don’t have a leading / in your relative path? What errors do your Heroku logs show?
Here is a snippet of code from one of my layout files:
When I ran into a similar problem, I discovered that Heroku web processes are limited to 30 seconds…so if your excel-write callback takes longer, it won’t complete - thus appearing that it’s not working - albeit returning files 0 KB in size. Not saying this is your problem, but it could be …
Hi @Emmanuelle! I’m having the same problem but with an app deployed with a Docker container on Azure. I have my assets folder in the root directory, and it works perfectly fine when I run it locally. The snippet in my code is: