[0.5.12] fix production no reload
This commit is contained in:
parent
f27b68e350
commit
8b88d7f1b4
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
__version__ = '0.5.11'
|
||||
__version__ = '0.5.12'
|
||||
|
||||
def version():
|
||||
return f'HalfAPI version:{__version__}'
|
||||
|
|
|
@ -29,7 +29,7 @@ def run(host, port, reload):
|
|||
|
||||
port = int(port)
|
||||
|
||||
if PRODUCTION:
|
||||
if PRODUCTION and reload:
|
||||
reload = False
|
||||
raise Exception('Can\'t use live code reload in production')
|
||||
|
||||
|
|
Loading…
Reference in New Issue