How do I reference a local file when moving to a remote server?

222 views Asked by At

I’m trying to deploy my dash app on EBS. I currently reference a local directory (on my machine) as ‘C:\users\me\projects\superstar\assets\database.db’ My dash app.py is in the superstar folder. I’ve tried changing this to ‘/assets/database.db’, but the code is unable to find the file.

1

There are 1 answers

0
Jesse McMullen-Crummey On

My problem was that the app.py file was not in the root directory. Once I moved it there, accessing '/assets/database.db' worked fine.