Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Falcon APP with uwsgi

I just started to learn Falcon (http://falcon.readthedocs.org/en/latest/user/quickstart.html) but it need a web server running and docs suggesting use uwsgi or gunicorn.

though they have mentioned that how to use it with gunicorn

$ pip install gunicorn  #install
$ gunicorn things:app   #and run app through gunicorn.

But I want to run this sample app with uwsgi. but I have no clue how to.

I have installed it pip install uwsgi also gevent as suggested here http://falcon.readthedocs.org/en/latest/user/install.html

but what now. somebody guide me.

like image 797
user3628682 Avatar asked Mar 20 '23 09:03

user3628682


1 Answers

You'll probably find your answer on the uWSGI documentation site, specifically try this page: http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html

I've never used Falcon or uWSGI, but it looks like you can probably get away with:

uwsgi --wsgi-file things.py --callable app
like image 174
djhoese Avatar answered Mar 23 '23 23:03

djhoese