At first: When i started nginx i see errors in log:
unix:/root/project/flask_paramiko.sock failed (13: Permission denied) while connecting to upstream
uwsgi.ini:
[uwsgi]
#chdir = /root/project
module = wsgi:app
master = true
processes = 5
socket = flask_paramiko.sock
chmod-socket = 666
vacuum = true
die-on-term = true
wsgi.py
from flask_paramiko import app
if __name__ == "__main__":
app.run()
uwsgi --socket /root/project/flask_paramiko.sock --wsgi-file wsgi.py:
unable to find "application" callable in file wsgi.py
unable to load app 0 (mountpoint='') (callable not found or import error)
/usr/bin/uwsgi --ini /root/project/uwsgi.ini works fine without any errors.
I don't mind where is an error.