- Backend migrado a estructura VPS (src/ subfolder) - Frontend con estructura Vite + React 19 + Tailwind - Configuración PostgreSQL con Pool - API service con interceptores JWT - Ambos servidores funcionando (backend:3001, frontend:5173)
9 lines
205 B
Bash
9 lines
205 B
Bash
#!/bin/bash
|
|
echo "Building React app..."
|
|
npm run build
|
|
echo "Setting permissions..."
|
|
sudo chown -R www-data:www-data dist/
|
|
echo "Reloading Nginx..."
|
|
sudo systemctl reload nginx
|
|
echo "✓ Deploy complete!"
|