BIG_UPDATE deleted vps, added s3 infrastructure.

This commit is contained in:
Georgiy Syralev
2025-11-23 14:35:16 +03:00
parent ae1f93a934
commit c4c2610480
173 changed files with 22684 additions and 5894 deletions

23
ospabhost/deploy.ps1 Normal file
View File

@@ -0,0 +1,23 @@
# Скрипт деплоя для ospabhost
# Запустите из корня проекта ospabhost/
Write-Host "🚀 Начинаем деплой..." -ForegroundColor Green
# 1. Загрузка backend
Write-Host "`n📦 Загружаем backend..." -ForegroundColor Yellow
scp -r backend/dist/* root@ospab.host:/var/www/ospab-host/backend/dist/
# 2. Загрузка frontend
Write-Host "`n📦 Загружаем frontend..." -ForegroundColor Yellow
scp -r frontend/dist/* root@ospab.host:/var/www/ospab-host/frontend/dist/
# 3. Перезапуск backend
Write-Host "`n♻️ Перезапускаем backend..." -ForegroundColor Yellow
ssh root@ospab.host "pm2 restart backend"
# 4. Очистка кеша nginx
Write-Host "`n🧹 Очищаем кеш nginx..." -ForegroundColor Yellow
ssh root@ospab.host "find /var/cache/nginx -type f -delete 2>/dev/null || true"
Write-Host "`n✅ Деплой завершён!" -ForegroundColor Green
Write-Host "Обновите страницу с Ctrl+F5 (hard refresh)" -ForegroundColor Cyan