change debug detection

master
bakatrouble 9 months ago
parent cd8970d599
commit c145919877

@ -13,7 +13,7 @@ from sanic_ext import Extend
from utils import get_j2env, get_sort_icon, get_sort_link, resolve_path, list_dir
DEBUG = environ.get('ENV', '').upper() != 'PRODUCTION'
DEBUG = Path('.debug').exists()
app = Sanic('autoindex', strict_slashes=True)
Extend(app)

Loading…
Cancel
Save