Updating the application

Updating the application#

To update Vulnerability-Lookup, run:

$ cd vulnerability-lookup/
$ poetry run update

During the update process, you will be prompted to back up the PostgreSQL database. If you prefer to trigger the backup manually, use:

$ poetry run flask --app website.app db_backup

The update also applies the pending database migrations and seeds any missing RBAC roles, permissions, and policies. When upgrading an instance that predates the RBAC system, see Migrating an existing instance for what the migration does and how to verify it.

Updating the Kvrocks indexes#

If you need to rebuild the Kvrocks indexes, run:

$ cd vulnerability-lookup/
$ poetry run python bin/index_vulnerabilities.py
$ poetry run python bin/index_cwe.py