nakama/moderation/backend-py/start.sh

32 lines
829 B
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
# Start script for Nakama Moderation Backend (Python)
echo "🚀 Запуск Nakama Moderation Backend (Python)..."
# Check if .env exists
if [ ! -f "../../.env" ]; then
echo "❌ Файл .env не найден в корне проекта!"
echo " Создайте файл nakama/.env с настройками"
exit 1
fi
# Check if venv exists
if [ ! -d "venv" ]; then
echo "📦 Создание виртуального окружения..."
python3 -m venv venv
fi
# Activate venv
echo "🔧 Активация виртуального окружения..."
source venv/bin/activate
# Install/update dependencies
echo "📥 Установка зависимостей..."
pip install -q -r requirements.txt
# Run server
echo "✅ Запуск сервера..."
python main.py