comparison web/templog.uwsgi @ 252:3e6f82347eab

uwsgi bits
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jun 2015 15:34:03 +0800
parents
children
comparison
equal deleted inserted replaced
250:141948a400a6 252:3e6f82347eab
1 # see templog-uwsgi.ini for arguments
2
3 from gevent import monkey; monkey.patch_all()
4
5 import os
6 import sys
7 import trace
8 # Change working directory so relative paths (and template lookup) work again
9 thisdir = os.path.dirname(__file__)
10 if not thisdir:
11 thisdir="."
12 os.chdir(thisdir)
13 os.environ['LD_LIBRARY_PATH'] = '/home/matt/templog/web'
14
15 # for some reason local imports don't work...
16 sys.path.append(thisdir)
17
18 import bottle
19 import templog
20 application = bottle.default_app()