Files
chat/run_gateway.sh
Andrew K. Choi ddce9f5125
All checks were successful
continuous-integration/drone/push Build is passing
Major fixes and new features
2025-09-25 15:51:48 +09:00

25 lines
1.1 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Запуск API Gateway для приложения Women Safety
echo -e "\033[1;34m🚀 Запуск API Gateway на порту 8000...\033[0m"
# Переход в директорию проекта
cd "$(dirname "$0")" || { echo "Не удалось перейти в директорию проекта"; exit 1; }
# Активация виртуального окружения, если оно существует
if [ -d "venv" ]; then
echo -e "\033[1;33m🔄 Активация виртуального окружения...\033[0m"
source venv/bin/activate
elif [ -d ".venv" ]; then
echo -e "\033[1;33m🔄 Активация виртуального окружения...\033[0m"
source .venv/bin/activate
fi
# Установка переменной PYTHONPATH
export PYTHONPATH="${PWD}:${PYTHONPATH}"
# Запуск API Gateway
echo -e "\033[1;32m✅ Запуск API Gateway...\033[0m"
cd services/api_gateway || { echo "Не удалось перейти в директорию API Gateway"; exit 1; }
python -m uvicorn main:app --host 0.0.0.0 --port 8000