py-phias/passenger_wsgi.py
2016-03-15 12:53:13 +03:00

19 lines
368 B
Python

# -*- 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("pyphias.log")
# Define wsgi app
application = phias_app._app
# Run bottle WSGI server if no external
if __name__ == '__main__':
application.start(host='0.0.0.0', port=8087, debug=True)