Skip to content

Commit 99c6ced

Browse files
committed
prefer 127.0.0.1 over localhost
1 parent a9d3dad commit 99c6ced

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ Install Celery for realtime processing of reports from clients:
312312

313313
```shell
314314
apt -y install python3-celery redis python3-redis python-celery-common
315-
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://localhost:6379/0 -E -A patchman
315+
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://127.0.0.1:6379/0 -E -A patchman
316316
```
317317

318318
#### CentOS / RHEL
@@ -321,7 +321,7 @@ C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://localhost:6379/0 -E -A p
321321
dnf -y install python3-celery redis python3-redis
322322
systemctl restart redis-server
323323
semanage port -a -t http_port_t -p tcp 6379
324-
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://localhost:6379/0 -E -A patchman
324+
C_FORCE_ROOT=1 celery worker --loglevel=info -b redis://127.0.0.1:6379/0 -E -A patchman
325325

326326
```
327327

patchman/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
THIRD_PARTY_APPS += ['celery']
105105
CELERY_IMPORTS = ['reports.tasks']
106106
USE_ASYNC_PROCESSING = True
107-
BROKER_URL = 'redis://localhost:6379/0'
107+
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
108108

109109
LOGIN_REDIRECT_URL = '/patchman/'
110110
LOGOUT_REDIRECT_URL = '/patchman/login/'

0 commit comments

Comments
 (0)