Inject dependencies into tornado app

This commit is contained in:
richard-dds
2018-06-18 10:44:06 -04:00
parent 6eb71cfe63
commit 64c71c0aa7
6 changed files with 65 additions and 12 deletions

5
app.py
View File

@@ -2,10 +2,11 @@
import tornado.ioloop
from atst.app import make_app, make_config
from atst.app import make_app, make_deps, make_config
config = make_config()
app = make_app(config)
deps = make_deps(config)
app = make_app(config, deps)
if __name__ == '__main__':
port = int(config['default']['PORT'])