Some checks failed
Run tests and pre-commit / Run tests and pre-commit hooks (push) Has been cancelled
Run tests and pre-commit / Frontend Lint and Build (push) Has been cancelled
Publish Fern Docs / run (push) Has been cancelled
Update OpenAPI Specification / update-openapi (push) Has been cancelled
- Implemented full Russian translation (ru) for 8 major pages - Added LanguageSwitcher component with language detection - Translated: Navigation, Settings, Workflows, Credentials, Banner, Examples - Fixed API endpoint path: changed to use sans-api-v1 client for /v1/ endpoints - Fixed CORS: added http://localhost:8081 to ALLOWED_ORIGINS - Added locales infrastructure with i18next and react-i18next - Created bilingual JSON files (en/ru) for 4 namespaces - 220+ translation keys implemented - Backend CORS configuration updated in .env - Documentation: I18N implementation guides and installation docs
51 lines
1.3 KiB
Bash
Executable File
51 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
||
|
||
# Skyvern Backend Starter Script
|
||
# Port: 8000
|
||
|
||
cd "$(dirname "$0")"
|
||
|
||
echo "🚀 Запуск Skyvern Backend..."
|
||
echo ""
|
||
echo "Активация virtual environment..."
|
||
source .venv/bin/activate
|
||
|
||
echo "Проверка БД..."
|
||
docker ps | grep skyvern-postgres || {
|
||
echo "❌ PostgreSQL не запущена! Запускаю..."
|
||
docker compose -f docker-compose.deps.yml up -d postgres
|
||
sleep 5
|
||
}
|
||
|
||
docker ps | grep skyvern-redis || {
|
||
echo "❌ Redis не запущена! Запускаю..."
|
||
docker compose -f docker-compose.deps.yml up -d redis
|
||
sleep 3
|
||
}
|
||
|
||
echo ""
|
||
echo "✅ PostgreSQL: localhost:5433"
|
||
echo "✅ Redis: localhost:6380"
|
||
echo ""
|
||
|
||
# Проверить .env
|
||
if [ ! -f .env ]; then
|
||
echo "❌ Файл .env не найден! Создайте его из .env.example"
|
||
exit 1
|
||
fi
|
||
|
||
echo "Запуск uvicorn сервера..."
|
||
echo "📍 Backend будет доступен на: http://localhost:8000"
|
||
echo "📍 API Docs: http://localhost:8000/docs"
|
||
echo ""
|
||
echo "Для остановки нажмите Ctrl+C"
|
||
echo ""
|
||
|
||
# Запуск FastAPI приложения
|
||
# Модуль: skyvern.forge.api_app:app
|
||
uvicorn skyvern.forge.api_app:app \
|
||
--host 0.0.0.0 \
|
||
--port 8000 \
|
||
--reload \
|
||
--log-level info
|