Skip to content
Newer
Older
100644 25 lines (20 sloc) 651 Bytes
10761b5 @bhearsum bug 689297: make AUS deployable as a wsgi application. r=catlee/nthomas
bhearsum authored Nov 1, 2011
1 import logging
2 from os import path
3 import site
4 import sys
5
6 mydir = path.dirname(path.abspath(__file__))
7 site.addsitedir(mydir)
8 site.addsitedir(path.join(mydir, 'vendor/lib/python'))
9
10 from auslib.client.base import app as application
11 from auslib.client.base import AUS
12 from auslib.config import AUSConfig
13
14 cfg = AUSConfig('/etc/aus/client.ini')
15 errors = cfg.validate()
16 if errors:
17 print >>sys.stderr, "Invalid configuration file:"
18 for err in errors:
19 print >>sys.stderr, err
20 sys.exit(1)
21
00a9ce4 @bhearsum bug 704312: balrog (at aus4-dev.allizom.org) not serving partials? - …
bhearsum authored Dec 6, 2011
22 logging.basicConfig(filename=cfg.getLogfile(), level=cfg.getLogLevel())
10761b5 @bhearsum bug 689297: make AUS deployable as a wsgi application. r=catlee/nthomas
bhearsum authored Nov 1, 2011
23 AUS.setDb(cfg.getDburi())
720ea0f @nthomas-mozilla Bug 685862, implement throttling in Balrog, r=bhearsum
nthomas-mozilla authored Mar 6, 2012
24 AUS.setSpecialHosts(cfg.getSpecialForceHosts())
Something went wrong with that request. Please try again.