Flask Deploy app



examples/flask/50/app.py
from flask import Flask
myapp = Flask(__name__)

@myapp.route("/")
def main():
    return 'Main'

uwsgi


examples/flask/50/uwsgi.ini
[uwsgi]
socket    = :9091
plugin    = python
wsgi-file = /home/gabor/work/my/app.py
process   = 3
callable = myapp

nginx


examples/flask/50/nginx.conf
server {
 	server_name example.com;
 

	access_log  /var/log/nginx/example.log  main;
	error_log /var/log/nginx/example.error.log;
 
 	location ~ /.git/ {
 	  deny all;
 	}
 
 	#error_page 404 /404.html;
 
	location '/' {
		include uwsgi_params;
		uwsgi_pass 127.0.0.1:9091;
	}
 
 	root /home/gabor/work/example.com/html/;
 }