summaryrefslogtreecommitdiff
path: root/lorry-controller-webapp
diff options
context:
space:
mode:
Diffstat (limited to 'lorry-controller-webapp')
-rwxr-xr-xlorry-controller-webapp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lorry-controller-webapp b/lorry-controller-webapp
index 7a3e3b5..43cff0d 100755
--- a/lorry-controller-webapp
+++ b/lorry-controller-webapp
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright (C) 2014-2016 Codethink Limited
+# Copyright (C) 2014-2017 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -185,6 +185,10 @@ class WEBAPP(cliapp.Application):
method=route.http_method,
callback=route.run)
+ logging.info('Initialising database')
+ statedb = lorrycontroller.StateDB(self.settings['statedb'])
+ statedb.initialise_db()
+
logging.info('Starting server')
if self.settings['wsgi']:
self.run_wsgi_server(webapp)