I've searched Google but can't seem to find an example of the command to use pypy with gunicorn. My current command to start gunicorn looks like this:
gunicorn = subprocess.Popen(['gunicorn',
'-k', 'gevent',
'-b', 'unix:/dev/shm/gunicorn.sock',
'-w', '4',
'wsgi:app'])
I have tried the following:
gunicorn = subprocess.Popen(['pypy', 'gunicorn',
'-k', 'gevent',
'-b', 'unix:/dev/shm/gunicorn.sock',
'-w', '4',
'wsgi:app'])
and
gunicorn = subprocess.Popen(['gunicorn',
'-k', 'gevent',
'-b', 'unix:/dev/shm/gunicorn.sock',
'-w', '4',
'pypy', 'wsgi:app'])
but both did not work.
So my question is, how exactly can I start my app (wsgi:app) using pypy within the gunicorn command?