╔═══════════════════════════════════════════════════════════╗ ║ БЫСТРЫЙ СТАРТ - 5 ШАГОВ ║ ║ landing.trendingnow.ge ║ ╚═══════════════════════════════════════════════════════════╝ ┌───────────────────────────────────────────────────────────┐ │ ШАГ 1: Настроить email (НА КОМПЬЮТЕРЕ) │ └───────────────────────────────────────────────────────────┘ 1. Откройте файл: env.production.txt 2. Найдите строки SMTP_USER и SMTP_PASSWORD 3. Вставьте ваш Gmail и пароль приложения* 4. Сохраните файл * Пароль приложения: https://myaccount.google.com/apppasswords ┌───────────────────────────────────────────────────────────┐ │ ШАГ 2: Загрузить файлы (В CPANEL) │ └───────────────────────────────────────────────────────────┘ 1. cPanel → File Manager 2. Создайте папку: /home/логин/landing-app/ 3. Загрузите ВСЕ файлы из этой папки туда 4. Переименуйте: env.production.txt → .env.production ┌───────────────────────────────────────────────────────────┐ │ ШАГ 3: Создать Node.js приложение (В CPANEL) │ └───────────────────────────────────────────────────────────┘ cPanel → "Setup Node.js App" → Create Application: Node.js version: 18.x Application mode: Production Application root: /home/логин/landing-app Application URL: landing.trendingnow.ge Startup file: server.js ┌───────────────────────────────────────────────────────────┐ │ ШАГ 4: Добавить переменные (В CPANEL → NODE.JS APP) │ └───────────────────────────────────────────────────────────┘ Нажмите "Add Variable" для каждой: NODE_ENV=production NEXT_PUBLIC_SITE_URL=https://landing.trendingnow.ge EMAIL_TO=info@trendingnow.ge EMAIL_FROM=noreply@trendingnow.ge SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=ваш-email@gmail.com SMTP_PASSWORD=ваш-app-password ⚠️ ВАЖНО: Используйте ВАШИ реальные данные! ┌───────────────────────────────────────────────────────────┐ │ ШАГ 5: Установить и запустить (В TERMINAL) │ └───────────────────────────────────────────────────────────┘ cPanel → Terminal: cd ~/landing-app npm install --production Затем: Setup Node.js App → Restart ╔═══════════════════════════════════════════════════════════╗ ║ ✅ ГОТОВО! ║ ╚═══════════════════════════════════════════════════════════╝ Откройте: https://landing.trendingnow.ge ───────────────────────────────────────────────────────────── ПРОБЛЕМЫ? • 502 Bad Gateway → Проверьте что npm install выполнен • Формы не работают → Проверьте Environment Variables • 404 → Restart приложения Подробнее: смотрите README.md или ИНСТРУКЦИЯ.md ─────────────────────────────────────────────────────────────