Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #458 from alphagov/change-dev-to-match-other-envs
Browse files Browse the repository at this point in the history
Change dev to match other envs
  • Loading branch information
leelongmore committed Dec 9, 2015
2 parents ad45fb6 + abd727a commit 9b86a49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ Copy data from an environment to the local Backdrop database (should be run on y

You may need to setup your [ssh config](https://github.gds/pages/gds/opsmanual/2nd-line/technical-setup.html#ssh-config) correctly for this to work

To sync to the govuk dev vm, you can pass `govuk_dev` as the 2nd argument to this script -
To sync to the govuk dev vm, you can pass `govuk_dev` as the 2nd argument to this script -

`bash tools/replicate-db.sh mongo-1.pp-preview govuk_dev`
`bash tools/replicate-db.sh performance-mongo-1.preview govuk_dev`


## Emptying a dataset
Expand Down Expand Up @@ -135,4 +135,10 @@ following command
`celery worker -A backdrop.transformers.worker -l debug`


## Troubleshooting

The logs for RabbitMQ can be found in: `/var/log/rabbitmq/`
If there are any problems running transforms, this should be the first place to look.



1 change: 1 addition & 0 deletions backdrop/core/log_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


class RequestIdFilter(logging.Filter):

def filter(self, record):
try:
record.govuk_request_id = request.headers.get('Govuk-Request-Id')
Expand Down
2 changes: 1 addition & 1 deletion backdrop/transformers/config/development.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TRANSFORMER_AMQP_URL = 'amqp://transformer:notarealpw@localhost:5672/%2Ftransformations'
TRANSFORMER_AMQP_URL = 'amqp://backdrop_write:backdrop_write@localhost:5672/%2Fbackdrop_write'
STAGECRAFT_URL = 'http://localhost:3103'
STAGECRAFT_OAUTH_TOKEN = 'development-oauth-access-token'
BACKDROP_READ_URL = 'http://backdrop-read.dev.gov.uk/data'
Expand Down

0 comments on commit 9b86a49

Please sign in to comment.