Fvitu commited on
Commit
bfccf79
·
verified ·
1 Parent(s): 20ea000

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +3 -5
start.sh CHANGED
@@ -1,16 +1,14 @@
1
  #!/bin/bash
2
-
3
  set -e
4
 
5
  # 1. Start the RQ Worker in the background (&)
6
- echo "🚀 Starting Worker..."
7
  python rq_worker.py "${REDIS_URL:-redis://localhost:6379/0}" &
8
 
9
  # 2. Start the web server (e.g., using Gunicorn for Flask or FastAPI)
10
- echo "🌐 Starting Web Server..."
11
-
12
  exec gunicorn app:app \
13
- --bind 0.0.0.0:${PORT:-5000} \
14
  --worker-class gthread \
15
  --workers ${WEB_CONCURRENCY:-1} \
16
  --threads ${GUNICORN_THREADS:-4} \
 
1
  #!/bin/bash
 
2
  set -e
3
 
4
  # 1. Start the RQ Worker in the background (&)
5
+ echo "Starting Worker..."
6
  python rq_worker.py "${REDIS_URL:-redis://localhost:6379/0}" &
7
 
8
  # 2. Start the web server (e.g., using Gunicorn for Flask or FastAPI)
9
+ echo "Starting Web Server..."
 
10
  exec gunicorn app:app \
11
+ --bind 0.0.0.0:${PORT:-7860} \
12
  --worker-class gthread \
13
  --workers ${WEB_CONCURRENCY:-1} \
14
  --threads ${GUNICORN_THREADS:-4} \