Update entrypoint.sh
Browse files- 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
|
9 |
python -m src.tele_bot.bot &
|
10 |
|
11 |
echo "Starting FastAPI application..."
|
12 |
-
# Start FastAPI with Uvicorn
|
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
|