ccplugin.py
changeset 11664 7567e99d6ed5
parent 11663 6fb9d9276880
child 11672 2018cdf2909e
equal deleted inserted replaced
11663:6fb9d9276880 11664:7567e99d6ed5
   314             profile_dump_every=self['profile-dump-every']
   314             profile_dump_every=self['profile-dump-every']
   315         )
   315         )
   316 
   316 
   317         host = cwconfig['interface']
   317         host = cwconfig['interface']
   318         port = cwconfig['port'] or 8080
   318         port = cwconfig['port'] or 8080
   319         repo = cwconfig.repository()
   319         repo = app.application.registry['cubicweb.repository']
   320         try:
   320         try:
   321             repo.start_looping_tasks()
   321             repo.start_looping_tasks()
   322             waitress.serve(app, host=host, port=port)
   322             waitress.serve(app, host=host, port=port)
   323         finally:
   323         finally:
   324             repo.shutdown()
   324             repo.shutdown()