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:
19
docker/start_dev_worker.sh
Normal file
19
docker/start_dev_worker.sh
Normal 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
|
Reference in New Issue
Block a user