You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
498 B
Bash
19 lines
498 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Arranca el bot en segundo plano (puerto 3007 por defecto)
|
|
BOT_PORT="${BOT_PORT:-3007}"
|
|
PORT="$BOT_PORT" bun run index.ts &
|
|
|
|
# Arranca la web (SvelteKit) en segundo plano en el puerto 3008
|
|
WEB_PORT="${WEB_PORT:-3008}"
|
|
pushd apps/web >/dev/null
|
|
PORT="$WEB_PORT" bun ./build/index.js &
|
|
popd >/dev/null
|
|
|
|
# Pequeña espera para evitar condiciones de carrera
|
|
sleep 1
|
|
|
|
# Arranca el router en primer plano en el puerto 3000 (o $PORT si viene de CapRover)
|
|
exec bun proxy.ts
|