Continuous periodic Data import

If you want to run the import periodically, you can use a systemd timer. Here is an example:

$ cat ~/.config/systemd/user/vulnerablecode.service

Description=Run VulnerableCode importers

ExecStart=/path/to/venv/bin/python /path/to/vulnerablecode/manage.py import --all && /path/to/venv/bin/python /path/to/vulnerablecode/manage.py improve --all

$ cat ~/.config/systemd/user/vulnerablecode.timer

Description=Periodically run VulnerableCode importers



Start this timer with:

systemctl --user daemon-reload
systemctl --user start vulnerablecode.timer

Environment variables configuration

VulnerableCode loads environment variables from an .env file when provided. VulnerableCode first checks the file at /etc/vulnerablecode/.env and if not present, it will attempt to load a .env file from the checkout directory.

The file at /etc/vulnerablecode/.env has precedence.