Fixed issue with environment variables not being set

This commit is contained in:
Matthew Welch 2020-11-28 23:58:44 -08:00
parent f9ea730711
commit fa5c9a1f1a
4 changed files with 25 additions and 7 deletions

8
.ebignore Normal file
View File

@ -0,0 +1,8 @@
# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
.idea/
__pycache__/
venv/

1
.gitignore vendored
View File

@ -7,3 +7,4 @@
.env
.idea/
__pycache__/
venv/

View File

@ -1,10 +1,8 @@
from os import environ
from pathlib import Path
from dotenv import load_dotenv
basedir = Path(__file__)
load_dotenv(str(basedir / ".env"))
load_dotenv(".env")
SECRET_KEY = environ.get("SECRET_KEY")
AWS_ACCESS_KEY_ID = environ.get("AWS_ACCESS_KEY_ID")

View File

@ -1,5 +1,16 @@
boto3==1.16.18
botocore==1.19.18
Flask==1.1.2
boto3==1.16.25
botocore==1.19.25
click==7.1.2
dynamodb-json==1.3
python-dotenv>=0.15.0
Flask==1.1.2
itsdangerous==1.1.0
Jinja2==2.11.2
jmespath==0.10.0
MarkupSafe==1.1.1
python-dateutil==2.8.1
python-dotenv==0.15.0
s3transfer==0.3.3
simplejson==3.17.2
six==1.15.0
urllib3==1.26.2
Werkzeug==1.0.1