server: started updating documentation

This commit is contained in:
2023-10-27 20:08:00 +02:00
committed by Mathieu Virbel
parent d8a842f099
commit e405ccb8f3
4 changed files with 46 additions and 16 deletions

View File

@@ -4,4 +4,11 @@ if [ -f "/venv/bin/activate" ]; then
source /venv/bin/activate
fi
alembic upgrade head
python -m reflector.app
if [ "${ENTRYPOINT}" = "server" ]; then
python -m reflector.app
elif [ "${ENTRYPOINT}" = "worker" ]; then
celery -A reflector.worker.app worker --loglevel=info
else
echo "Unknown command"
fi