mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
20 lines
306 B
Bash
20 lines
306 B
Bash
#!/bin/sh
|
|
|
|
echo "Starting InvenTree worker..."
|
|
|
|
cd $INVENTREE_HOME
|
|
|
|
# Activate virtual environment
|
|
source ./dev/env/bin/activate
|
|
|
|
sleep 5
|
|
|
|
# Wait for the database to be ready
|
|
cd InvenTree
|
|
python3 manage.py wait_for_db
|
|
|
|
sleep 10
|
|
|
|
# Now we can launch the background worker process
|
|
python3 manage.py qcluster
|