Skip to content

Off instance redis#244

Merged
cabarnes merged 5 commits intoalphafrom
off-instance-redis
Aug 2, 2019
Merged

Off instance redis#244
cabarnes merged 5 commits intoalphafrom
off-instance-redis

Conversation

@hbradio
Copy link
Copy Markdown
Collaborator

@hbradio hbradio commented Aug 1, 2019

We had already set up config/settings/common.py to read the Redis URL from the environment, but it was being overwritten in entrypoint.sh. This gets rid of the overwriting export in entrypoint.sh.

I created an ElastiCache Redis instance and ssh'd into our beta EC2 to test this change.

We can leave redis in the docker-compose for now so that the alpha environment can use on-instance redis to save money.


Unrelated: I also commented the ECR deploy until we're ready to resume work on the ECS cluster.

@hbradio hbradio requested a review from cabarnes August 1, 2019 05:07
@hbradio hbradio self-assigned this Aug 1, 2019
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 1, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 6189023 on off-instance-redis into 951c5c2 on alpha.

@@ -6,7 +6,6 @@ cmd="$@"
# Since docker-compose relies heavily on environment variables itself for configuration, we'd have to define multiple
# environment variables just to support cookiecutter out of the box. That makes no sense, so this little entrypoint
# does all this for us.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably remove this comment as well since what it is referring to is gone

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixing.

ASGI_APPLICATION = 'config.asgi.application'

redis_url = urlparse(env('REDIS_URL', default='redis://127.0.0.1:6379'))
redis_url = urlparse(env('REDIS_URL', default='redis://redis:6379'))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This default also exists in production.py. Do you want to change it there as well?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! Fixing.

@cabarnes cabarnes merged commit a264e49 into alpha Aug 2, 2019
@cabarnes cabarnes deleted the off-instance-redis branch August 2, 2019 02:04
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.

3 participants