Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ BLUESKY_HANDLE=
BLUESKY_PASSWORD=
APP_ENV=

CITY_NAME=Boston
CITY_STATE=MA
POSTAL_CODE=02108
3 changes: 3 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_TEST_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
APP_ENV: dev
CITY_NAME: ${{ vars.CITY_NAME }}
CITY_STATE: ${{ vars.CITY_STATE }}
POSTAL_CODE: ${{ vars.POSTAL_CODE }}
run: |
#In order to create posts on the test accounts remove the --debugposters debug flag
python ./main.py --debugsources --debugposters
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:
MASTODON_TOKEN: ${{ secrets.MASTODON_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
APP_ENV: prod
CITY_NAME: ${{ vars.CITY_NAME }}
CITY_STATE: ${{ vars.CITY_STATE }}
POSTAL_CODE: ${{ vars.POSTAL_CODE }}
run: python ./main.py

- name: Upload database artifact
Expand Down
11 changes: 7 additions & 4 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
CITY_NAME = "Boston"
CITY_STATE = "MA"
CITY_HASHTAGS = ["Boston"]
POSTAL_CODE = "02108"
import os

# Import environment variables and fallback to defaults for Boston if not found.
CITY_NAME = os.environ.get("CITY_NAME", "Boston")
CITY_STATE = os.environ.get("CITY_STATE", "MA")
CITY_HASHTAGS = [CITY_NAME]
POSTAL_CODE = os.environ.get("POSTAL_CODE", "02108")

# RescueGroups API plural species names for the species we post about.
PET_SPECIES = ("dogs", "cats")
Expand Down
Loading