I’m trying to deploy a dash app on apache 2 on this subdomain http://dax.fin-tweet.de/. My code works perfectly on the local machine (as you can see in the attached picture). All three functions are provided (drop-down, charting and live-updating).
The Python process may have a different working directory than your Dash script. You can check by printing the current working directory right before you try to open the file:
import os
print(os.getcwd())
Or if the Apache server is not printing stdout, then just include it in your layout:
app.layout = html.Div(os.getcwd())
If that’s the issue, then you can fix it right by using an absolute path, or explicitly changing the working directory of the Python process.