fix worker

This commit is contained in:
Charlotte 🦝 Delenk 2022-11-02 22:04:36 +01:00
parent 7402d3de9a
commit 31d36925f7
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -63,7 +63,7 @@ in
echo "${moa-env}/bin/python -m moa.models" >> start.sh
cp start.sh start-worker.sh
mv start.sh start-app.sh
echo "exec ${moa-env}/bin/python -m moa.worker" >> start-worker.sh
echo "while true; do ${moa-env}/bin/python -m moa.worker; sleep 60; done" >> start-worker.sh
echo "exec ${moa-env}/bin/python app.py" >> start-app.sh
chmod +x start-*.sh
'';