Rm more extra files.
This commit is contained in:
@ -1,11 +0,0 @@
|
|||||||
from flask import Flask
|
|
||||||
from flask import render_template
|
|
||||||
app = Flask(__name__)
|
|
||||||
app.debug = True
|
|
||||||
|
|
||||||
@app.route("/")
|
|
||||||
def hello():
|
|
||||||
return render_template('hello.html', message="Hello World!")
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
app.run(host='0.0.0.0', port=8080)
|
|
@ -1,18 +0,0 @@
|
|||||||
#Full path: /var/www/lab_app/lab_app_nginx.conf
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name localhost;
|
|
||||||
charset utf-8;
|
|
||||||
client_max_body_size 75M;
|
|
||||||
|
|
||||||
location /static {
|
|
||||||
root /var/www/lab_app/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / { try_files $uri @labapp; }
|
|
||||||
location @labapp {
|
|
||||||
include uwsgi_params;
|
|
||||||
uwsgi_pass unix:/var/www/lab_app/lab_app_uwsgi.sock;
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user