Actions
Update Netbox¶
/etc/supervisor.d/netbox.ini
[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
REDIS configuration in /home/app/netbox/netbox/netbox/configuration.py
should be like below
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, } }
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
Updated by Ahmed Bilal over 4 years ago ยท 3 revisions