don't use context manager in web command
This commit is contained in:
parent
c90d8ddcff
commit
045a802365
|
@ -1,3 +1,10 @@
|
||||||
|
passbook (0.1.30) stable; urgency=medium
|
||||||
|
|
||||||
|
* bump version: 0.1.28-beta -> 0.1.29-beta
|
||||||
|
* don't use context manager in web command
|
||||||
|
|
||||||
|
-- Jens Langhammer <jens.langhammer@beryju.org> Thu, 11 Apr 2019 12:21:58 +0000
|
||||||
|
|
||||||
passbook (0.1.29) stable; urgency=medium
|
passbook (0.1.29) stable; urgency=medium
|
||||||
|
|
||||||
* bump version: 0.1.27-beta -> 0.1.28-beta
|
* bump version: 0.1.27-beta -> 0.1.28-beta
|
||||||
|
|
|
@ -21,10 +21,9 @@ class Command(BaseCommand):
|
||||||
def daphne_server(self):
|
def daphne_server(self):
|
||||||
"""Run daphne server within autoreload"""
|
"""Run daphne server within autoreload"""
|
||||||
autoreload.raise_last_exception()
|
autoreload.raise_last_exception()
|
||||||
with CONFIG.cd('web'):
|
CommandLineInterface().run([
|
||||||
CommandLineInterface().run([
|
'-p', str(CONFIG.y('web.port', 8000)),
|
||||||
'-p', str(CONFIG.get('port', 8000)),
|
'-b', CONFIG.y('web.listen', '0.0.0.0'), # nosec
|
||||||
'-b', CONFIG.get('listen', '0.0.0.0'), # nosec
|
'--access-log', '/dev/null',
|
||||||
'--access-log', '/dev/null',
|
'passbook.core.asgi:application'
|
||||||
'passbook.core.asgi:application'
|
])
|
||||||
])
|
|
||||||
|
|
Reference in New Issue