La mia configurazione uwsgi app sembra che
/etc/uwsgi/apps-enabled/mysite.ini
[uwsgi]
socket=/tmp/uwsgi_mysite.sock
chmod-socket=666
abstract-socket=false
master=true
workers=2
uid=altera
gid=altera
chdir=/home/altera/www/mysite ; Current dir
pp=/home/altera/www/mysite ; Python Path (to your application)
pyhome=/home/altera/vpy/mysite ; Path to virtual environment
plugins=python3
module=main ; *.py file name application starting from
post-buffering=8192
/etc/nginx/sites-available/mySite
server {
server_name mysite;
root /home/altera/www/mysite;
location/{
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi_mysite.sock;
}
}
grazie che è esattamente era il problema che ho avuto per rimuovere il pacchetto ubuntu e l'installazione utilizzando pip :) –
Perfetto. Su Ubuntu 12.04 avevo bisogno di 'apt-get install uwsgi-plugin-python' e poi aggiungevo' plugin = python' nel mio file uwsgi ini. – Roshambo
Su Gentoo, ho dovuto impostare 'UWSGI_EXTRA_OPTIONS = - plugins = python27' nella mia configurazione uWSGI in'/etc/conf.d/'. – scvalex