upgrade.sh 414 B

123456789101112131415
  1. #!/bin/sh
  2. # This script will prepare NetBox to run after the code has been upgraded to
  3. # its most recent release.
  4. #
  5. # Once the script completes, remember to restart the WSGI service (e.g.
  6. # gunicorn or uWSGI).
  7. # Install any new Python packages
  8. pip install -r requirements.txt --upgrade
  9. # Apply any database migrations
  10. ./netbox/manage.py migrate
  11. # Collect static files
  12. ./netbox/manage.py collectstatic --noinput