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

17 lines
336 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-08-02 10:41:40 +02:00
from appmgr.wsgiapp import WSGIApp
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))