mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 00:33:41 -04:00
Improve running redis locally
- adds simple explicit instructions for how to install and run redis - gets celery running in docker able to talk to redis running natively on your machine as per https://docs.docker.com/desktop/mac/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
This commit is contained in:
12
README.md
12
README.md
@@ -61,10 +61,18 @@ export PATH=${PATH}:/Applications/Postgres.app/Contents/Versions/11/bin/
|
||||
|
||||
### Redis
|
||||
|
||||
To switch redis on you'll need to install it locally. On a OSX we've used brew for this. To use redis caching you need to switch it on by changing the config for development:
|
||||
You can run redis locally using
|
||||
|
||||
REDIS_ENABLED = True
|
||||
```
|
||||
brew install redis
|
||||
redis-server
|
||||
```
|
||||
|
||||
To get the API to use redis locally you need to change the config for development:
|
||||
|
||||
```
|
||||
REDIS_ENABLED = True
|
||||
```
|
||||
|
||||
## To run the application
|
||||
|
||||
|
||||
Reference in New Issue
Block a user