2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 03:56:43 +00:00
InvenTree/docker/start_worker.sh
Oliver Walters 9086c8a3bf Simplify external directory structure
- All InvenTree data now in a single subdir
- Copy default config file (if it does not exist)
- Config file is accessible from outside world
- Update start_server and start_worker scripts
2021-04-10 17:36:19 +10:00

19 lines
285 B
Bash

#!/bin/sh
echo "Starting InvenTree worker..."
# Activate virtual environment
source ./env/bin/activate
sleep 5
# Wait for the database to be ready
cd src/InvenTree
python manage.py wait_for_db
sleep 10
# Now we can launch the background worker process
python manage.py qcluster