-
Notifications
You must be signed in to change notification settings - Fork 150
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
Updates to CONFIG_DIR, and STATIC_ROOT #61
Conversation
Codecov Report
@@ Coverage Diff @@
## master #61 +/- ##
=======================================
Coverage 47.81% 47.81%
=======================================
Files 72 72
Lines 2405 2405
=======================================
Hits 1150 1150
Misses 1255 1255
Continue to review full report at Codecov.
|
* Rename CONFIG_DIR to PROMGEN_CONFIG_DIR to be more descriptive * Add PROMGEN_CONFIG as the path to promgen.yml * Add STATIC_ROOT (was unintentionally hardcoded) * Move SECRET_KEY within settings.py to allow override in promgen.yml
Dear Paul, Much appreciated as this update will resolve the static file issues not displaying correctly and i no need to manually move the static file and configure alias in nginx |
Looks good to me, I'll amend my PR to match the new My only concern is, that there are now three ways to specify |
The env var and the SECRET_KEY file are basically the same. Everything in PROMGEN_CONFIG_DIR that is in ALLCAPS is loaded into the environ dictionary. I agree having multiple ways to configure things is a little strange, so perhaps this should be re-visited to clean it up a bit more. At a high level, I suppose I imagined an org might build their own Docker image with their own promgen.yml file baked in, and then just use ENV vars to set connection information DATABASE and CELERY_BROKER_URL via ENV vars |
Alright, I see. |
You're right >_< |
I want to go ahead and merge this to fix the variable naming and missing setting for STATIC_ROOT knowing that I still have the precedence incorrect. I will file a new PR to fix the precedence |
STATIC_ROOT was missed and I've updated PROMGEN_CONFIG_DIR based on a comment in #54
@seoester let me know if this seems reasonable to you regarding your documentation changes.