Browse Source

Do not use config file anymore

master
Wesley Kerfoot 5 years ago
parent
commit
968675b523
  1. 2
      app/Dockerfile
  2. 3
      app/website.py

2
app/Dockerfile

@ -21,8 +21,6 @@ RUN sassc ./styles/riotblog.scss > ./styles/riotblog.intermediate.min.css
RUN cp ./styles/*.css ./build/styles/
RUN uglifycss ./styles/*.css > ./build/styles/riotblog.min.css
ENV RIOTBLOG_SETTINGS "/src/riotblog_local.cfg"
COPY run.sh /run.sh
COPY blogPosts.json /blogPosts.json

3
app/website.py

@ -66,9 +66,6 @@ def NeverWhere(configfile=None):
#return send_from_directory("/srv/http/goal/favicon.ico",
#'favicon.ico', mimetype='image/vnd.microsoft.icon')
print(environ["RIOTBLOG_SETTINGS"])
app.config.from_envvar('RIOTBLOG_SETTINGS')
@app.route("/blog/styles/<path:path>")
def send_styles(path):
return send_from_directory("build/styles", path)

Loading…
Cancel
Save