## New Features - Email notifications for overdue and upcoming payments - User preferences page for notification settings - Daily scheduler to send alerts at user-configured time - Smart analysis: payable items, transfer suggestions between accounts ## Backend - Migration for user_preferences table - SendDuePaymentsAlert Artisan command - DuePaymentsAlert Mailable with HTML/text templates - UserPreferenceController with test-notification endpoint - Scheduler config for notify:due-payments command ## Frontend - Preferences.jsx page with notification toggle - API service for preferences - Route and menu link for settings - Translations (PT-BR, EN, ES) ## Server - Cron configured for Laravel scheduler Version: 1.44.5
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
# Deploy de mudanças de orçamentos com subcategorias
|
|
|
|
SERVER="root@213.165.93.60"
|
|
PASS="Master9354"
|
|
|
|
echo "📦 Enviando arquivos..."
|
|
|
|
# Enviar migration
|
|
sshpass -p "$PASS" scp -o StrictHostKeyChecking=no \
|
|
/workspaces/webmoney/backend/database/migrations/2025_12_16_211102_add_subcategory_to_budgets_table.php \
|
|
$SERVER:/var/www/webmoney/backend/database/migrations/
|
|
|
|
# Enviar Model
|
|
sshpass -p "$PASS" scp -o StrictHostKeyChecking=no \
|
|
/workspaces/webmoney/backend/app/Models/Budget.php \
|
|
$SERVER:/var/www/webmoney/backend/app/Models/
|
|
|
|
# Enviar Controller
|
|
sshpass -p "$PASS" scp -o StrictHostKeyChecking=no \
|
|
/workspaces/webmoney/backend/app/Http/Controllers/Api/BudgetController.php \
|
|
$SERVER:/var/www/webmoney/backend/app/Http/Controllers/Api/
|
|
|
|
echo "✅ Arquivos enviados"
|
|
echo ""
|
|
|
|
echo "🔄 Executando migration..."
|
|
sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no $SERVER "cd /var/www/webmoney/backend && php artisan migrate --force"
|
|
|
|
echo ""
|
|
echo "🎯 Limpando cache..."
|
|
sshpass -p "$PASS" ssh -o StrictHostKeyChecking=no $SERVER "cd /var/www/webmoney/backend && php artisan config:clear && php artisan cache:clear && php artisan route:clear"
|
|
|
|
echo ""
|
|
echo "✅ Deploy do backend concluído!"
|