From 77fa1723d93fb71cebc6b18bbaf2aaccc6f328e9 Mon Sep 17 00:00:00 2001 From: Marius Andra Date: Sat, 30 Nov 2024 23:08:47 +0100 Subject: [PATCH] docker start script --- backend/docker-start.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 backend/docker-start.sh diff --git a/backend/docker-start.sh b/backend/docker-start.sh new file mode 100755 index 00000000..56492b90 --- /dev/null +++ b/backend/docker-start.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# Start Redis +redis-server --daemonize yes + +# Apply database migrations +cd backend +source .venv/bin/activate +flask db upgrade + +# Start Huey task queue +huey_consumer.py app.huey.huey --worker-type=greenlet --workers=10 --flush-locks & + +# Start the Flask application +python3 run.py