diff --git a/files/__main__.py b/files/__main__.py index 724a7996d..913d3f38b 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -16,7 +16,9 @@ import gevent from werkzeug.middleware.proxy_fix import ProxyFix import redis -app = Flask(__name__, template_folder='templates/CHRISTMAS') +if environ.get("CHRISTMAS"): templates = 'templates/CHRISTMAS' +else: templates = 'templates' +app = Flask(__name__, template_folder=templates) app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3) app.url_map.strict_slashes = False