diff --git a/halfapi/__init__.py b/halfapi/__init__.py index 5b52fb5..a9dd787 100644 --- a/halfapi/__init__.py +++ b/halfapi/__init__.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -__version__ = '0.5.11' +__version__ = '0.5.12' def version(): return f'HalfAPI version:{__version__}' diff --git a/halfapi/cli/run.py b/halfapi/cli/run.py index fc4c5ac..7045d94 100644 --- a/halfapi/cli/run.py +++ b/halfapi/cli/run.py @@ -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')