Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Don’t you need to activate the virtualenv in the upstart script before running gunicorn?
Nice tutorial. I’ve been wanting to understand how WSGI servers worked and also have a chance to try nginx and Flask. I recently learned Bottle and used CGI to serve my app through Apache. So this is like the modern way of doing everything I did earlier. Thanks for that!
When I try to run the “gunicorn --bind 0.0.0.0:8000 wsgi” I get a “Failed to find application : ‘wsgi’”. I’m in the same dir as wsgi.py file. Any ideas?
Thanks in advance!
I’m having trouble accessing the app after initially configuring it any running the server with python myproject.py. The server is running (It says “Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)”)
When I try to connect using my web browser to XX.XX.XXX.XX:5000, it gives me an unable to connect error. I’m going to continue through the tutorial to setting up gunicorn, and go from there, but what could I be doing wrong?
Following the setup exactly, I get a 502 Bad Gateway error when going to my server IP address. Now I can access the page if I’m running the “gunicorn test:application -b 0.0.0.0:8000” and it loads fine.
I even followed the comment fixes by using the script section instead to activate the env with the right python settings. Still no go.
Has things changed since this was written?
Justin could you please help me with my setup? I have my python app running nginx and gunicorn successfully on windows azure. However, i have a website running on another instance on azure and would like my python app to be served through the website to show something like www.mywebsite.com/nameofmyapp/. I understand its got to do with proxies. Any guide? Thanks.
I get an error when I try to run “sudo start myproject”, saying “sudo: start: command not found”. How can I fix this? Thanks for the help!
For those who are getting timeouts at the first attempt to connect via port 5000 (or whatever is assigned), I got around the issue by adding that port to the ufw firewall, if you set it up per the initial server setup guide.
This may only help newcomers like myself, but I’m sure there are a few of us around.
I got and error trying to run sudo start myproject. It says: start: Job failed to start. All the files are exactly like the tutorial. How can I solve this, please?