eienmojiki's picture
Update run.sh
29d9c48 verified
raw
history blame contribute delete
671 Bytes
#!/bin/bash
# --- Khởi động các dịch vụ ---
# 1. Khởi động Nginx
echo "Starting Nginx..."
service nginx start
# 2. Khởi động Streamlit trên cổng 8501
echo "Starting Streamlit on port 8501..."
# Streamlit cần được chạy ở chế độ nền (background)
streamlit run app_streamlit.py --server.port 8501 --server.address 0.0.0.0 --server.baseUrlPath /streamlit &
# 3. Khởi động Gradio/FastAPI trên cổng 7860
echo "Starting Gradio/FastAPI on port 7860..."
# Lệnh này sẽ chạy ở chế độ foreground và giữ container sống.
# Đảm bảo nó là lệnh cuối cùng!
uvicorn app_gradio:app --port 7860 --host 0.0.0.0