-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
32 lines (25 loc) · 719 Bytes
/
Copy pathrun.py
File metadata and controls
32 lines (25 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'''
Copyright Matthew Wollenweber 2015
mjw@insomniac.technology
All Rights Reserved.
'''
__description__ = ''
__author__ = 'Matthew Wollenweber'
__email__ = 'mjw@insomniac.technology'
__version__ = '0.0.1'
__date__ = '2015/02/12'
import sys
import traceback
import os
from app import create_app
if __name__ == '__main__':
try:
myapp = create_app("development")
myapp.run(debug=True, host='0.0.0.0', port=8000)
except KeyboardInterrupt:
print "KeyboardInterrupt! Exiting."
sys.exit(0)
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback, limit=5, file=sys.stderr)
sys.exit(-1)