3 Commits
Author SHA1 Message Date
Ben West 0f4cf36de2 12 factor app: environment variables
Use the dotenv library to read both a file called .env, as well as inspect
environment variables.
In addition, provide some checking and sanitization on the PUMP_SERIAL_NUMBER
along with an error message for commonly anticipated issues.
2021-03-14 21:51:33 -07:00
Ben West d47aee77c9 pipenv install python-dotenv
Adding this library allows reading from standard environment files as well as
environment variables.
2021-03-14 21:50:35 -07:00
Ben West cc952992e0 12 factor app: prep for reading environment variables
This change prepares the repo to ignore a .env file instead of the secret.py.
It also eliminates the secret.py.example file, which shouldn't be needed.
2021-03-14 21:46:48 -07:00