Skip to content

Commit

Permalink
add possibility to set static url path from environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Strubbl committed May 21, 2018
1 parent 4257605 commit dc89cb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webtodotxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit dc89cb1

Please sign in to comment.