Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated main.py to use .env variables instead of config.init variables. #610

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

themagicianking
Copy link
Collaborator

@themagicianking themagicianking commented Feb 19, 2025

Issue: We should move towards using the .env since this is the industry standard and existed in this codebase before config.ini was added. We'd like to stop using the config.ini and switch to only using the .env file.

Feedback Request: None yet, draft PR

Testing: Delete current config.init file and replace it with an empty .env file. Ensure the site runs without crashing. Replace the empty .env with the new .env. Ensure that the site runs without crashing and all components displaying data using .env variables display specific data rather than default data correctly.

Tasks Done in this PR:

  • All environment variables used by the code are in a .env file (that is not checked in)
  • Code is refactored to only use the .env
  • The config.ini documentation is replaced with .env documentation
  • The .env is stored somewhere safe like Lastpass that is able to be shared (not in the website google doc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant