equal
deleted
inserted
replaced
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() |