5 ms·
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/
by stoplight 14y 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
- zx2c4 14y agoWhat 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 14y agoThanks, that seemed to do the trick!
- akx 14y agoTry adding a --pythonpath or --chdir that points to the project directory in addition to the -H pointing to the venv.