diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 024103a..46d7d70 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -50,6 +50,4 @@ jobs: --name snatchgame \ --restart unless-stopped \ --network principal \ - -p 8089:3000 \ - -p 8090:2567 \ $REG/snatchgame:latest \ No newline at end of file diff --git a/start.sh b/start.sh index 2cd1224..a49580a 100644 --- a/start.sh +++ b/start.sh @@ -1,15 +1,15 @@ #!/bin/sh -# Iniciar el servidor Colyseus en background +# Iniciar el servidor Colyseus en background (puerto 2567) echo "Starting Colyseus server..." -cd /app/server && node dist/server/src/index.js & +cd /app/server && PORT=2567 node dist/server/src/index.js & # Esperar un momento para que el servidor inicie sleep 2 -# Servir el cliente compilado +# Servir el cliente compilado (puerto 3000) echo "Starting client server..." -cd /app/client && serve -s dist -l 3000 & +cd /app/client && serve -s dist -p 3000 & # Mantener el contenedor corriendo wait \ No newline at end of file