Update Netbox » History » Revision 2
Revision 1 (Ahmed Bilal, 05/08/2020 09:07 AM) → Revision 2/3 (Ahmed Bilal, 05/08/2020 09:08 AM)
h1. Update Netbox @/etc/supervisor.d/netbox.ini@ <pre> [program:netbox] command = /home/app/netbox/venv/bin/gunicorn -c /home/app/netbox/gunicorn_config.py netbox.wsgi directory = /home/app/netbox/netbox/ user = app [program:netbox-rqworker] command = /home/app/netbox/venv/bin/python3 /home/app/netbox/netbox/manage.py rqworker directory = /home/app/netbox/netbox/ user = app </pre> REDIS configuration in @/home/app/netbox/netbox/netbox/configuration.py@ should be like below <pre> REDIS = { 'tasks': { 'HOST': 'localhost', 'PORT': 6379, 'PASSWORD': '', 'DATABASE': 0, 'DEFAULT_TIMEOUT': 300, 'SSL': False, }, 'caching': { 'HOST': 'localhost', 'PORT': 6379, 'PASSWORD': '', 'DATABASE': 1, 'DEFAULT_TIMEOUT': 300, 'SSL': False, } } </pre> <pre><code class="shell"> cd /home/app/netbox git checkout master git reset --hard git pull origin master chown -R app:app . echo django-auth-ldap >> requirements.txt echo python-decouple >> requirements.txt ./upgrade.sh supervisorctl reread supervisorctl reload supervisorctl restart all </code></pre>