Deploy flasks on cherokee and uwsgi

I am trying to deploy a flash application that I developed using cherokee and uwsgi. I have cherokee and uwsgi installed and working (I think uwsgi is working), but when I configure the application in cherokee, I just get an error message uWSGI Error wsgi application not found. I used the xml configuration file (I think you need with cherokee) and this contains the following:

<uwsgi>
    <pythonpath>/srv/mobile-site/app/</pythonpath>
    <app mountpoint="/">
        <module>mobilecms</module>
        <callable>app</callable>
    </app>
</uwsgi>

My flash drive application is located in the folder /srv/mobile-site/app/with the main script mobilecms.py.

Is there something wrong with this file? Are there permission errors? Thanks in advance for your help!

+3
source share
2 answers

- ; , ( uWSGI Cherokee).

, uWSGI Cherokee . uWSGI Cherokee :

  • Cherokee "" "uWSGI Source" "/tmp/foo.sock",
    • "Local Interpreter"
    • : /usr/local/bin/uwsgi -x /path/to/uwsgiconfig.xml
  • , .
    • "" "/"
    • "uWSGI"
    • "Round Robin" .
    • " uWSGI"
  • Cherokee

uWSGI - ( ):

<uwsgi>
    <chdir>/srv/mobile-site/app/</chdir>
    <wsgi-file>/srv/mobile-site/app/mobilecms.py</wsgi-file>
    <callable>app</callable>

    <socket>/tmp/foo.sock</socket>
    <chmod-socket>666</chmod-socket>

    <master />
    <processes>1</processes>

    <disable-logging /><!-- Errors are still logged; this just disables request logging which Cherokee takes care of -->

    <vacuum />
    <no-orphans />
</uwsgi>

, uWSGI Cherokee ( ).

+2

uWSGI -, .

uwsgi -x <xmlfile>

/

+2

Source: https://habr.com/ru/post/1795005/


All Articles