Skip to content

Commit

Permalink
Import default data at boot time
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Sep 22, 2024
1 parent 8ff8cb5 commit 8305c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions compose/production/django/start
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ set -o nounset
python /app/manage.py collectstatic --noinput

python manage.py migrate --skip-checks
python manage.py insert_default_data --skip-checks
exec /usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker
3 changes: 2 additions & 1 deletion threatr/core/management/commands/data/entity_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
{"short_name": "COMPANY", "name": "Private company", "description": "", "svg_icon": "", "nf_icon": "nf-fa-dollar"},
{"short_name": "APT", "name": "APT", "description": "", "svg_icon": "", "nf_icon": "nf-fae-virus"},
{"short_name": "INDIVIDUAL", "name": "Individual", "description": "", "svg_icon": "", "nf_icon": "nf-cod-person"},
{"short_name": "PUB_INST", "name": "Public institution", "description": "", "svg_icon": "", "nf_icon": "nf-fa-bank"}
{"short_name": "PUB_INST", "name": "Public institution", "description": "", "svg_icon": "", "nf_icon": "nf-fa-bank"},
{"short_name": "THREAT_ACTOR", "name": "Threat actor", "description": "", "svg_icon": "", "nf_icon": "nf-fae-virus"}
]
},
{
Expand Down

0 comments on commit 8305c41

Please sign in to comment.