Skip to content

Add documentation for running with prod secrets - #76

Merged
c-w merged 1 commit into
masterfrom
document-secrets
Oct 4, 2018
Merged

c-w merged 1 commit into
masterfrom
document-secrets

Conversation

@c-w

@c-w c-w commented Oct 4, 2018

Copy link
Copy Markdown
Member

This change adds a new docker-compose file that can be used to override
the local settings and switch to production mode (using blob storage and
service bus).

In order to make the override work, it was necessary to also rename the
CELERY_BROKER_URL environment variable since it seems like the celery
framework gives it special meaning and overrides any local configuration
if the environment variable is set (thus the CELERY_BROKER value in
config.py wasn't being used and rabbitmq was still used even with the
production settings override). Changing the environment variable name to
QUEUE_BROKER_URL fixes this behavior.

For consistency with the above environment variable name change, other
environment variables were also renamed to a more generic form (e.g.
CELERY_WORKERS to QUEUE_WORKERS and GUNICORN_WORKERS to
SERVER_WORKERS).

See #75

@c-w

c-w commented Oct 4, 2018

Copy link
Copy Markdown
Member Author

FYI @adamsclafani

This change adds a new docker-compose file that can be used to override
the local settings and switch to production mode (using blob storage and
service bus).

In order to make the override work, it was necessary to also rename the
`CELERY_BROKER_URL` environment variable since it seems like the celery
framework gives it special meaning and overrides any local configuration
if the environment variable is set (thus the `CELERY_BROKER` value in
`config.py` wasn't being used and rabbitmq was still used even with the
production settings override). Changing the environment variable name to
`QUEUE_BROKER_URL` fixes this behavior.

For consistency with the above environment variable name change, other
environment variables were also renamed to a more generic form (e.g.
`CELERY_WORKERS` to `QUEUE_WORKERS` and `GUNICORN_WORKERS` to
`SERVER_WORKERS`).

See #75
@c-w
c-w force-pushed the document-secrets branch from 607a684 to e824891 Compare October 4, 2018 23:13
@codecov-io

codecov-io commented Oct 4, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #76 into master will decrease coverage by 0.1%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
- Coverage   88.46%   88.35%   -0.11%     
==========================================
  Files          21       21              
  Lines         728      730       +2     
==========================================
+ Hits          644      645       +1     
- Misses         84       85       +1
Impacted Files Coverage Δ
opwen_email_server/services/tasks.py 76.47% <100%> (ø) ⬆️
opwen_email_server/config.py 93.75% <66.66%> (-6.25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69800d0...e824891. Read the comment docs.

@c-w
c-w merged commit 17eed54 into master Oct 4, 2018
@c-w
c-w deleted the document-secrets branch October 4, 2018 23:15
c-w added a commit that referenced this pull request Apr 28, 2020
* Refactor to simpler devserver command

* Inline devserver command

* Add option to create admin during Lokole setup
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.

2 participants