File size: 297 Bytes
7158b5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

echo "Starting Redis..."
redis-server --daemonize yes --save "" --appendonly no

sleep 2

echo "Starting RQ worker..."
rq worker asr --url redis://127.0.0.1:6379 &
WORKER_PID=$!

echo "Starting FastAPI..."
uvicorn app.main:app --host 0.0.0.0 --port ${PORT} &

wait $WORKER_PID