Testys commited on
Commit
dc273c7
·
verified ·
1 Parent(s): d249c76

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +4 -3
entrypoint.sh CHANGED
@@ -1,3 +1,4 @@
 
1
  set -e
2
 
3
  echo "Starting Redis server..."
@@ -5,9 +6,9 @@ echo "Starting Redis server..."
5
  redis-server &
6
 
7
  echo "Starting Telegram bot..."
8
- # Start the Telegram bot in the background (ensure __main__ in bot.py is set to run the bot)
9
  python -m src.tele_bot.bot &
10
 
11
  echo "Starting FastAPI application..."
12
- # Start FastAPI with Uvicorn in the foreground so the container keeps running.
13
- exec uvicorn app.src.api:app --host 0.0.0.0 --port 7860 --workers 1
 
1
+ #!/bin/bash
2
  set -e
3
 
4
  echo "Starting Redis server..."
 
6
  redis-server &
7
 
8
  echo "Starting Telegram bot..."
9
+ # Start the Telegram bot in the background
10
  python -m src.tele_bot.bot &
11
 
12
  echo "Starting FastAPI application..."
13
+ # Start FastAPI with Uvicorn
14
+ exec uvicorn app.src.api:app --host 0.0.0.0 --port 7860 --workers 1