el cambio de puerto 8888

This commit is contained in:
unknown
2026-06-13 12:35:04 -04:00
parent 8ff8b3a459
commit 08d5674fbf
5 changed files with 7 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
JWT_SECRET=cambiar-por-un-secreto-largo-y-aleatorio
# Puerto web Don Marco en el host (Docker). Cambiar si 8888 está ocupado.
DONMARCO_WEB_PORT=8888
# Puerto API (solo desarrollo local sin Docker)
PORT=4000

View File

@@ -111,14 +111,14 @@ curl http://localhost:4000/api/health
Debe responder `"version": "1.2.0"` y `"features": ["historial-gestiones", "cierre-gestion", ...]`.
En el navegador (`http://IP-DEL-SERVIDOR:8080`):
En el navegador (`http://IP-DEL-SERVIDOR:8888` por defecto):
- Pestaña **Administración** (solo usuario JEFE) → sección **Cierre de gestión**
- Cada planilla tiene **barra lateral** con gestiones anteriores (solo lectura)
- Al pie: **Don Marco v1.2.0 — Historial de gestiones (Docker)**
### Acceso en la red
- **Web:** `http://IP-DEL-SERVIDOR:8080` (puerto 8080; el 80 queda libre para otras apps)
- **Web:** `http://IP-DEL-SERVIDOR:8888` (puerto configurable en `.env``DONMARCO_WEB_PORT`)
- **API:** `http://IP-DEL-SERVIDOR:4000/api/health`
### Cierre de gestión (solo JEFE)

View File

@@ -40,7 +40,7 @@ services:
container_name: donmarco-web
restart: unless-stopped
ports:
- "8080:80"
- "${DONMARCO_WEB_PORT:-8888}:80"
depends_on:
backend:
condition: service_healthy

View File

@@ -28,7 +28,7 @@ try {
Write-Host ""
Write-Host "Listo. Abra en el navegador:" -ForegroundColor Green
Write-Host " http://localhost:8080" -ForegroundColor White
Write-Host " http://localhost:8888 (o el puerto en .env: DONMARCO_WEB_PORT)" -ForegroundColor White
Write-Host " Usuario: JEFE | Contrasena: MACAN" -ForegroundColor White
Write-Host " Menu: pestana 'Administracion' > seccion Cierre de gestion" -ForegroundColor White
Write-Host " Pie de pagina debe decir: v1.2.0 — Historial de gestiones (Docker)" -ForegroundColor White

View File

@@ -14,7 +14,7 @@ sleep 5
curl -s http://localhost:4000/api/health || true
echo ""
echo ""
echo "Listo. Abra: http://localhost:8080"
echo "Listo. Abra: http://localhost:8888 (o el puerto en .env: DONMARCO_WEB_PORT)"
echo "Usuario: JEFE | Contraseña: MACAN"
echo "Menú: pestaña 'Administración' > sección Cierre de gestión"
echo "Cada planilla tiene barra lateral con gestiones anteriores (solo lectura)"