I Fix it and work now.
1.i have wrongly config sock name on nginx, it should same as wsig created and case sensitive
2.the directory that running on nginx set to 777, i granted owner and group (775), it also not work, 777 work now.
Beiträge von singwong28
-
-
thank you Peter,
it is very close to work, i can running the app using 'uwsgi --socket .......'
now i am trying to fixing the 502 bad gateway on Nginx, once fix, i will try to set it with Emperor also -
Hi Peter,
Tks for your reply ,refer to your tutorial, i can run my flask under activating virtualenv and using python myapp.py
uwsgi --socket 0.0.0.0:8080 --protocol=http -w wsgi:app, it also work.However, cannot run it by run by a service / on Ngnix.
It return 502 Bad Gateway but
display Active: active (running) on screenNot very understand what is the problem
Still working hard to fix it out -
Hello,
I have install nginx on my OMV4 and normally.
i have a python program create by flask(on Visual Basic) running on my windows apache, and want to move it to my OMV
Many try and error, i can run flask on activate virtualenv only
i find lot of document for wsgi config ,flask/nginx on debian etc....but finally not work.it is probable running flask or python thougth Nginx on OMV and any easy way to do that? Thank you for help