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  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

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: info-contact@alibabacloud.com 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.