From dc89cb1a5d3f755a0ba16739025e87ef543a0e4a Mon Sep 17 00:00:00 2001 From: Sven Fischer Date: Mon, 21 May 2018 20:58:51 +0200 Subject: [PATCH] add possibility to set static url path from environment variable fix #24 --- webtodotxt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webtodotxt.py b/webtodotxt.py index c260469..584935f 100644 --- a/webtodotxt.py +++ b/webtodotxt.py @@ -3,13 +3,15 @@ from flask_babel import Babel from flask import Flask import logging +import os # ----------------------------------------------------------- # Boot +STATIC_URL_PATH = os.getenv('WEBTODOTXT_STATIC_URL_PATH', '') -app = Flask(__name__, static_url_path='') +app = Flask(__name__, static_url_path=STATIC_URL_PATH) app.config.from_pyfile('config.py') if not app.config['TITLE']: