From 8b88d7f1b499a1946ade9687b51c764766ec4e7e Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Thu, 7 Oct 2021 13:22:16 +0200 Subject: [PATCH] [0.5.12] fix production no reload --- halfapi/__init__.py | 2 +- halfapi/cli/run.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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')