Skip to content

Commit

Permalink
docker start script
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Nov 30, 2024
1 parent e991380 commit 77fa172
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions backend/docker-start.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 77fa172

Please sign in to comment.