Skip to content

Commit

Permalink
Merge branch 'dev' into 363_DOC_PRTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
jmensch1 authored Mar 9, 2020
2 parents 9c71897 + a57d590 commit eacc412
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -yq \

ENV DB_CONNECTION_STRING=REDACTED
ENV PORT=5000
ENV TOKEN=None
COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions server/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def environment_overrides():
if os.environ.get('PORT', None):
app.config['Settings']['Server']['PORT'] =\
os.environ.get('PORT')
if os.environ.get('TOKEN', None):
app.config['Settings']['Socrata']['TOKEN'] =\
os.environ.get('TOKEN')


def configure_app():
Expand Down

0 comments on commit eacc412

Please sign in to comment.