Skip to content

Commit

Permalink
Load settings before jobs in dev wsgi file (same as 3147035)
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 26, 2015
1 parent 8ce69bf commit 75d536e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
# install) use deployment/datapusher.wsgi

import ckanserviceprovider.web as web
import datapusher.jobs as jobs

web.init()

import datapusher.jobs as jobs
# check whether jobs have been imported properly
assert(jobs.push_to_datastore)

web.init()
web.app.run(web.app.config.get('HOST'), web.app.config.get('PORT'))

0 comments on commit 75d536e

Please sign in to comment.