I assume I’m doing something wrong here.
I have an app with a CSS file in the assets/ folder, which I understand is automatically served. This works fine when I am running the app on localhost, but when I deploy it to a remote server, this CSS file does not appear to be loaded. I can see the app content, and callbacks are working, but there is no styling.
I’m deploying behind nginx and gunicorn if that makes any difference. I’m relatively new to this configuration, and I’m not sure exactly how Dash is “automatically” serving the assets in assets/, so perhaps I’m overlooking something obvious.
A quick googling suggests that this issue is sometimes due to not having
__name__ in the
dash.Dash() instantiation, but I do already have that.
Any help appreciated!