add a simple command to run the background task

This commit is contained in:
Andreas Zweili 2019-10-20 22:43:09 +02:00
parent b6ad61ccce
commit 110c8da696
1 changed files with 8 additions and 0 deletions

8
sensors/run.sh Executable file
View File

@ -0,0 +1,8 @@
source ../venv/bin/activate
export DJANGO_SETTINGS_MODULE=sensors.settings.production
while :
do
./manage.py collect
sleep 10
done