Skip to content

Commit

Permalink
Merge pull request #69 from PolicyEngine/fix/fix_env_vars
Browse files Browse the repository at this point in the history
Fix environment variables
  • Loading branch information
anth-volk authored Jan 25, 2024
2 parents a35e703 + 5285acc commit 83a944d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
AUTH0_TEST_TOKEN_NO_DOMAIN: ${{ secrets.AUTH0_TEST_TOKEN_NO_DOMAIN }}
USER_ANALYTICS_DB_USERNAME: ${{ secrets.USER_ANALYTICS_DB_USERNAME }}
USER_ANALYTICS_DB_PASSWORD: ${{ secrets.USER_ANALYTICS_DB_PASSWORD }}
USER_ANALYTICS_CONNECTION_NAME: ${{ secrets.USER_ANALYTICS_CONNECTION_NAME }}
USER_ANALYTICS_DB_CONNECTION_NAME: ${{ secrets.USER_ANALYTICS_DB_CONNECTION_NAME }}
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ jobs:
AUTH0_TEST_TOKEN_NO_DOMAIN: ${{ secrets.AUTH0_TEST_TOKEN_NO_DOMAIN }}
USER_ANALYTICS_DB_USERNAME: ${{ secrets.USER_ANALYTICS_DB_USERNAME }}
USER_ANALYTICS_DB_PASSWORD: ${{ secrets.USER_ANALYTICS_DB_PASSWORD }}
USER_ANALYTICS_CONNECTION_NAME: ${{ secrets.USER_ANALYTICS_CONNECTION_NAME }}
USER_ANALYTICS_DB_CONNECTION_NAME: ${{ secrets.USER_ANALYTICS_DB_CONNECTION_NAME }}
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Fix environment variables
2 changes: 1 addition & 1 deletion gcp/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
TEST_TOKEN = os.environ["AUTH0_TEST_TOKEN_NO_DOMAIN"]
DB_USER = os.environ["USER_ANALYTICS_DB_USERNAME"]
DBPW = os.environ["USER_ANALYTICS_DB_PASSWORD"]
DB_CONN = os.environ["USER_ANALYTICS_DB_CONNECTION"]
DB_CONN = os.environ["USER_ANALYTICS_DB_CONNECTION_NAME"]

# Export GAE to to .gac.json

Expand Down
2 changes: 1 addition & 1 deletion gcp/policyengine_household_api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV AUTH0_AUDIENCE_NO_DOMAIN .audience
ENV AUTH0_TEST_TOKEN_NO_DOMAIN .test-token
ENV USER_ANALYTICS_DB_PASSWORD .dbpw
ENV USER_ANALYTICS_DB_USERNAME .dbuser
ENV USER_ANALYTICS_CONNECTION_NAME .dbconn
ENV USER_ANALYTICS_DB_CONNECTION_NAME .dbconn
ADD . /app
RUN cd /app && make install && make test
CMD ./start.sh
2 changes: 1 addition & 1 deletion policyengine_household_api/data/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def getconn():

conn = connector.connect(
os.getenv("USER_ANALYTICS_CONNECTION_NAME"),
os.getenv("USER_ANALYTICS_DB_CONNECTION_NAME"),
"pymysql",
user=os.getenv("USER_ANALYTICS_DB_USERNAME"),
password=os.getenv("USER_ANALYTICS_DB_PASSWORD"),
Expand Down

0 comments on commit 83a944d

Please sign in to comment.