Forums

the default path for app seem to have been move

i created an app long ago and been using relative path, eg ./static/path/to/file and it always point to /var/www/static/path/to/file

but today after lots of updating (and fixing typo) using git pull, the server just froze up, not responding,

so instead of waiting or posting on the forum, i decided to just delete it using the delete button on the web app page

and recreate it using git reset --hard but when i ran it, it just error, so after debugging,

i found out the path have been change, now ./static/path/to/file seem point to /home/asl97/static/path/to/file

so i just did a symbolic links and everything seem to work fine, hopefully nothing is broken due to the path change.

ln -s /var/www/static /home/asl97/static

No that should all be fine. In general it's best to use full paths or to base your paths on the location of your Python files using __file__ rather than relying on the working directory.