url-abuse/runapp.py

14 lines
277 B
Python
Raw Normal View History

2015-03-02 14:55:34 +01:00
#!/usr/bin/env python
# -*-coding:utf-8 -*
import os
from web import create_app
# create an app instance
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
app = create_app()
app.run(host='0.0.0.0', port = 5100, debug=False, threaded=True)