Trying To Push My App To Heroku Gives Me This Error Filenotfounderror: [errno 2] No Such File Or Directory: '/app/gettingstarted/media'
While trying to push my app I get the follwing error FileNotFoundError: [Errno 2] No such file or directory: '/app/gettingstarted/media' But it does exist which confuses me.My fil
Solution 1:
I think the issue here is that git doesn't track empty directories, they need to contain at least one file for git to "see" them, so although your media
directory exists locally it doesn't exist on Heroku. A common way of handling this is to create an empty file called .keep
in the directory.
Post a Comment for "Trying To Push My App To Heroku Gives Me This Error Filenotfounderror: [errno 2] No Such File Or Directory: '/app/gettingstarted/media'"