NGINX+UWSGI Deployment Fabric-bolt

Source: Internet
Author: User

Configure nginx.conf

vim nginx.conf         location / {             root /www/fabric-bolt/lib/python2.7/ Site-packages/fabric_bolt;            include    uwsgi_params;            uwsgi_ pass;             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></socket><pidfile>/usr/local/nginx/conf/< /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:


File "/www/fabric-bolt/lib/python2.7/site-packages/django/conf/", 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/

"Core.settings" modified to "core.settings.settings"


File "/www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt/core/", line 4, in <module> Import Socketio.sdjangodjango.core.exceptions.ImproperlyConfigured:Error Importing module Stronghold.middleware: "No Module named Socketio.sdjango



Comment out Socketio related lines


File "/www/fabric-bolt/lib/python2.7/site-packages/fabric_bolt/web_hooks/", line 5, <module> From fabric_bolt.projects.models import Deploymentdjango.core.exceptions.ImproperlyConfigured:Error importing Module Stronghold.middleware: "Cannot import name Deployment"


Vim core/settings/

Comment out ' fabric_bolt.web_hooks ',

This is accessible via Nginx access to the Fabric-bolt homepage:

650) this.width=650; "src=" "title=" a1.jpg "alt=" Wkiom1svprvzhpbvaah-rfivnum202.jpg "/>

NGINX+UWSGI Deployment Fabric-bolt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.