I have a site that has been running for around 6 months with the code virtually untouched during that time. I updated some of the code yesterday and I'm hitting an issue with an unrelated piece of code which is now failing. I'm using flask. My static folder is directly off the root folder where the app is running (/home/DeciNoFrac/launchreport) and I've been successfully accessing a json file using the code below:
loc_json = open("static/src/locations.json", "r")
This is now failing when I update the flask application code, so I've rolled back. However, I notice that on the web tab for some reason I've mapped "static" to /home/DeciNoFrac/static, however the folder where the static json file is hosted is actually in /home/DeciNoFrac/launchreport/static. I'm a little confused as if the mapping is incorrect then why isn't the existing code failing? As for resolving it I'm concerned about changing the static mapping as my current app may fail. If it does fail I'm unsure whether rolling the mapping back will get it back to where it is now.
Note that the same static path to images resolve in the flask templates, I think with the old and the new code.
I don't have any other references in my code such as url_for, etc... Any help much appreciated.