top | item 5041735

(no title)

stoplight | 13 years ago

Pretty interesting. What does your uwsgi line look like? Mine keeps failing with "ImportError: No module named zmusic.login". I'm running:

uwsgi --socket /tmp/uwsgi-zmusic.sock --file /home/user/zmusic-ng/backend/zmusic -H /home/user/zmusic-ng/venv --callable app --processes 4

discuss

order

zx2c4|13 years ago

What you want is zmusic:app with the -w switch.

    -w zmusic:app --socket /tmp/uwsgi-zmusic.sock --chmod-socket=660
Using --chdir to change to the backend/ directory may be useful as well.

I've just updated the README with these instructions.

I've also added a section on using uwsgi in standalone mode, as the built-in debugging server can't handle concurrent requests.

stoplight|13 years ago

Thanks, that seemed to do the trick!

akx|13 years ago

Try adding a --pythonpath or --chdir that points to the project directory in addition to the -H pointing to the venv.