Files
msgbyte--tianji/scripts/start-tianji-container.sh
2026-07-13 12:30:54 +08:00

17 lines
402 B
Bash

#!/bin/sh
# Start Tianji server in background
pnpm start:docker &
# Wait a moment for server to start
sleep 10
# Start reporter with default workspace
/usr/local/bin/tianji-reporter --url "http://localhost:12345" --workspace "clnzoxcy10001vy2ohi4obbi0" --name "tianji-container" --silent > /dev/null &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?