Configure nginx.conf
vim nginx.conf location / { root /www/fabric-bolt/lib/python2.7/ Site-packages/fabric_bolt; include uwsgi_params; uwsgi_ pass 192.168.1.121:9001; uwsgi_param uwsgi_chdir /www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt; uwsgi_param UWSGI_SCRIPT wsgi; access_log /usr/local/nginx/logs/access.log; } location /static/ { alias /www/fabric-bolt/lib/python2.7/site-packages/ Fabric_bolt/work/myweb/static/; index index.html;}
Configuration wsgi.xml:
Vim Uwsgi.xml
<uwsgi><socket>192.168.1.121:9001</socket><pidfile>/usr/local/nginx/conf/uwsgi.pid< /pidfile><processes>2</processes><pythonpath>/www/fabric-bolt/lib/python2.7/site-packages </pythonpath><pythonpath>/www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt</pythonpath ><module>wsgi</module><chdir>/www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt< /chdir><daemonize>/tmp/uwsgi.log</daemonize></uwsgi>
This NGINX+UWSGI deployment Fabric-bolt when/tmp/uwsgi.log error:
1.
File "/www/fabric-bolt/lib/python2.7/site-packages/django/conf/__init__.py", line 151, in __init__ raise Improperlyconfigured ("The Secret_key setting must not being empty.") Django.core.exceptions.ImproperlyConfigured:The Secret_key setting must not being empty.
Workaround: fabric_bolt/wsgi.py
"Core.settings" modified to "core.settings.settings"
2.
File "/www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt/core/urls.py", line 4, in <module> Import Socketio.sdjangodjango.core.exceptions.ImproperlyConfigured:Error Importing module Stronghold.middleware: "No Module named Socketio.sdjango
Workaround:
vim/www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt/core/urls.py
Comment out Socketio related lines
3.
File "/www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt/web_hooks/receivers.py", line 5, <module> From fabric_bolt.projects.models import Deploymentdjango.core.exceptions.ImproperlyConfigured:Error importing Module Stronghold.middleware: "Cannot import name Deployment"
Workaround:
Vim core/settings/base.py
Comment out ' fabric_bolt.web_hooks ',
This is accessible via Nginx access to the Fabric-bolt homepage:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/59/wKiom1SvPrvzHpBVAAH-rfiVNUM202.jpg "title=" a1.jpg "alt=" Wkiom1svprvzhpbvaah-rfivnum202.jpg "/>
NGINX+UWSGI Deployment Fabric-bolt