Spotter-VM/basic/srv/vm/wsgi.py

17 lines
348 B
Python
Raw Normal View History

2018-08-02 10:41:40 +02:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
2018-09-03 17:24:48 +02:00
sys.path.append('/srv/vm')
2018-09-04 21:42:26 +02:00
from mgr.wsgiapp import WSGIApp
2018-08-02 10:41:40 +02:00
application = WSGIApp()
if __name__ == '__main__':
import os
from werkzeug.contrib.fixers import ProxyFix
2018-08-02 10:41:40 +02:00
from werkzeug.serving import run_simple
run_simple('127.0.0.1', 8080, ProxyFix(application), threaded=True)