turboci-admin/docker/services/websocket/entrypoint.sh
2026-03-09 06:16:36 +01:00

15 lines
263 B
Bash

#!/bin/bash
cd /app
if [[ -z "$NODE_ENV" ]]; then
echo "NODE_ENV is not set. Defaulting to development."
NODE_ENV="development"
fi
if [[ "$NODE_ENV" == "production" ]]; then
bun src/websocket/index.ts
else
bun --watch src/websocket/index.ts
fi