Organizar archivos de deployment en carpeta deploy/
Some checks failed
build-and-deploy / build (push) Failing after 6s
build-and-deploy / deploy (push) Has been skipped

This commit is contained in:
2025-08-15 17:50:33 -06:00
parent 59f60328e2
commit fa94330ace
12 changed files with 720 additions and 0 deletions

15
deploy/start.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# Iniciar el servidor Colyseus en background (puerto 2567)
echo "Starting Colyseus server..."
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 (puerto 3000)
echo "Starting client server..."
cd /app/client && serve -s dist -p 3000 &
# Mantener el contenedor corriendo
wait