diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-10 18:05:28 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-10 18:05:28 +0200 |
commit | c14cf3d69c19d7a3c21cccb4be82cf8d3c6f89ed (patch) | |
tree | e37c3ca7ae19c2811784608608e16c534443b886 /src | |
parent | Updated about page. (diff) | |
download | newspipe-c14cf3d69c19d7a3c21cccb4be82cf8d3c6f89ed.tar.gz newspipe-c14cf3d69c19d7a3c21cccb4be82cf8d3c6f89ed.tar.bz2 newspipe-c14cf3d69c19d7a3c21cccb4be82cf8d3c6f89ed.zip |
test
Diffstat (limited to 'src')
-rw-r--r-- | src/bootstrap.py | 4 | ||||
-rwxr-xr-x | src/runserver.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py index 88630130..912c35ae 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -41,10 +41,6 @@ application.config['PREFERRED_URL_SCHEME'] = scheme set_logging(conf.LOG_PATH, log_level=conf.LOG_LEVEL) -if conf.ON_HEROKU: - from flask_sslify import SSLify - SSLify(application) - # Create secrey key so we can use sessions application.config['SECRET_KEY'] = getattr(conf, 'WEBSERVER_SECRET', None) if not application.config['SECRET_KEY']: diff --git a/src/runserver.py b/src/runserver.py index 4687dd37..0768cea8 100755 --- a/src/runserver.py +++ b/src/runserver.py @@ -22,6 +22,10 @@ import calendar from bootstrap import conf, application, populate_g from flask_babel import Babel, format_datetime +if conf.ON_HEROKU: + from flask_sslify import SSLify + SSLify(application) + babel = Babel(application) |