Renamed wsgi module

This commit is contained in:
jar3b
2016-04-25 11:06:49 +03:00
parent fc3d2f5e64
commit 3e6ccc96a1
2 changed files with 6 additions and 0 deletions

18
wsgi.py Normal file
View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from aore import phias
# Load config
try:
from config import *
except ImportError:
assert "No config"
# Define main app
phias_app = phias.App(config.BasicConfig.logfile)
# Define wsgi app
application = phias_app.get_app()
# Run bottle WSGI server if no external
if __name__ == '__main__':
phias_app.start(host='0.0.0.0', port=8087, debug=True)