Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add management commands #194

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
prefer 127.0.0.1 over localhost
  • Loading branch information
furlongm committed Jul 30, 2020
commit afc350137a0fbaa26d22eb81ae0957fd342a6d94
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Install Celery for realtime processing of reports from clients:

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

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

```

Expand Down
2 changes: 1 addition & 1 deletion patchman/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
THIRD_PARTY_APPS += ['celery']
CELERY_IMPORTS = ['reports.tasks']
USE_ASYNC_PROCESSING = True
BROKER_URL = 'redis://localhost:6379/0'
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'

LOGIN_REDIRECT_URL = '/patchman/'
LOGOUT_REDIRECT_URL = '/patchman/login/'
Expand Down