Simplificar Docker a imagen única y actualizar workflow CI/CD
This commit is contained in:
15
start.sh
Normal file
15
start.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Iniciar el servidor Colyseus en background
|
||||
echo "Starting Colyseus server..."
|
||||
cd /app/server && node dist/index.js &
|
||||
|
||||
# Esperar un momento para que el servidor inicie
|
||||
sleep 2
|
||||
|
||||
# Servir el cliente compilado
|
||||
echo "Starting client server..."
|
||||
cd /app/client && serve -s dist -l 3000 &
|
||||
|
||||
# Mantener el contenedor corriendo
|
||||
wait
|
||||
Reference in New Issue
Block a user