hyperdx/docker/fullstack/entry.sh
2024-12-06 16:27:23 -08:00

8 lines
350 B
Bash

#!/bin/bash
# Use concurrently to run both the API and App servers
npx concurrently \
"--kill-others" \
"--names=API,APP" \
"APP_TYPE=api PORT=${HYPERDX_API_PORT:-8000} node -r /app/api/node_modules/@hyperdx/node-opentelemetry/build/src/tracing /app/api/build/index.js" \
"/app/app/node_modules/.bin/next start -p ${HYPERDX_APP_PORT:-8080}"