upgrade.sh 507 B

12345678910111213141516
  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. echo "Updating required Python packages (pip install -r requirements.txt --upgrade)..."
  9. sudo pip install -r requirements.txt --upgrade
  10. # Apply any database migrations
  11. ./netbox/manage.py migrate
  12. # Collect static files
  13. ./netbox/manage.py collectstatic --noinput