SeattleDSA / signal-scanner-bot

DSA Signal-to-Twitter app for forwarding police scanner communications to our Twitter account
MIT License
4 stars 1 forks source link

Verify .env configurations on start #37

Open mpuckett159 opened 4 years ago

mpuckett159 commented 4 years ago

Description

This is more of a stylistic preference I think, and just kind of a "maybe this is a good idea" thought I guess, feel free to reject or amend it. I was thinking it might be good to include some validations in the env.py file similar to the castings we're doing. This way the admin can see immediately if there are issues with the .env file settings.

Verify various configuration values in the .env file including:

AetherUnbound commented 4 years ago

I dig this!! I think it would be helpful to have it as a separate command, since some of these checks could be time consuming and we may not want it to run on every startup. But definitely a more thorough validation check could really help in getting an instance going.