casjay 5eb3ff1598
🗃️ Committing everything that changed 🗃️
applications/
configs/
lists/
wwwroot/
2023-08-22 17:53:03 -04:00

21 lines
567 B
Bash

EXEC_CMD_BIN="bun" # command to execute
EXEC_CMD_ARGS="dev $DATA_DIR/index.ts" # command arguments
# define commands
[ -d "$DATA_DIR" ] && cd "$DATA_DIR" || exit 1
if [ -n "$START_SCRIPT" ]; then
RUN_SCRIPT="$START_SCRIPT"
elif [ -f "./src/index.ts" ]; then
RUN_SCRIPT="./index.ts"
elif [ -f "./index.ts" ]; then
RUN_SCRIPT="./index.ts"
elif [ -f "./app.ts" ]; then
RUN_SCRIPT="./app.ts"
elif [ -f "./server.ts" ]; then
RUN_SCRIPT="./server.ts"
fi
# Run bun install
__exec_command $EXEC_CMD_BIN install
EXEC_CMD_ARGS="dev $RUN_SCRIPT"