Skip to content

Commit

Permalink
Add .env to .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdbd committed Sep 29, 2020
1 parent 434c736 commit 543d7cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
@@ -1,4 +1,5 @@
.git/
.env
__pycache__/
.pytest_cache/
tests/
Expand Down
6 changes: 3 additions & 3 deletions app.py
Expand Up @@ -23,9 +23,9 @@
load_dotenv(dotenv_path)

if os.environ.get("PLOTLY_USERNAME") is None:
raise Exception("PLOTLY_USERNAME not set in .env")
raise Exception("PLOTLY_USERNAME not set")
if os.environ.get("PLOTLY_API_KEY") is None:
raise Exception("PLOTLY_API_KEY not set in .env")
raise Exception("PLOTLY_API_KEY not set")
chart_studio.tools.set_credentials_file(
os.environ["PLOTLY_USERNAME"], os.environ["PLOTLY_API_KEY"]
)
Expand All @@ -41,7 +41,7 @@
# data = json.load(data_file)

if os.environ.get("MAPBOX_ACCESS_TOKEN") is None:
raise Exception("MAPBOX_ACCESS_TOKEN not set in .env")
raise Exception("MAPBOX_ACCESS_TOKEN not set")
mapbox_access_token = os.environ.get("MAPBOX_ACCESS_TOKEN")

# http://colorbrewer2.org/#type=sequential&scheme=YlOrRd&n=5
Expand Down

0 comments on commit 543d7cc

Please sign in to comment.