From 601a6f653621a84096fcf8521e68ec967d2f7a43 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 14 Dec 2022 15:07:57 +0300 Subject: [PATCH] fix debug setting --- autoindex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoindex.py b/autoindex.py index c595530..d658030 100644 --- a/autoindex.py +++ b/autoindex.py @@ -12,7 +12,7 @@ from sanic_cors import CORS from utils import get_j2env, get_sort_icon, get_sort_link, resolve_path, list_dir -DEBUG = True # environ.get('ENV', '').upper() != 'PRODUCTION' +DEBUG = environ.get('ENV', '').upper() != 'PRODUCTION' app = Sanic('autoindex') cors = CORS(app)