specify / web-asset-server

Sample attachment server implementation for Specify.
10 stars 13 forks source link

PWD or CWD matters #3

Closed pdelong42 closed 9 years ago

pdelong42 commented 9 years ago

That chdir to /home/anhalt/web-asset-server makes a big difference. You might want to add a note in the README to clarify that it's a necessary step (and why).

I spent some time banging my head into a wall trying to diagnose 500-errors, because I was running it out of my home directory (referring to server.py by its absolute path), when I should've been running it out of its base directory.

This is largely due to TEMPLATE_PATH being set to a list of relative paths, in bottle.py.