2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 01:55:39 +00:00

Add entrypoint for running development worker

This commit is contained in:
Oliver Walters
2021-05-12 22:12:26 +10:00
parent 530f28ba95
commit 719b1775f2
3 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,19 @@
#!/bin/sh
echo "Starting InvenTree worker..."
cd $INVENTREE_SRC_DIR
# Activate virtual environment
source inventree-docker-dev/bin/activate
sleep 5
# Wait for the database to be ready
cd $INVENTREE_MNG_DIR
python manage.py wait_for_db
sleep 10
# Now we can launch the background worker process
python manage.py qcluster