1
Some checks are pending
build-with-all-capacity / build-and-push-image (push) Waiting to run
build-with-audio-assistant / build-and-push-image (push) Waiting to run
build-with-chatglm / build-and-push-image (push) Waiting to run
build-with-latex-arm / build-and-push-image (push) Waiting to run
build-with-latex / build-and-push-image (push) Waiting to run
build-without-local-llms / build-and-push-image (push) Waiting to run

This commit is contained in:
van
2025-02-06 10:23:42 +08:00
parent 0f1d2e0e48
commit a88497c3ab
2 changed files with 82 additions and 0 deletions

11
start.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
GPT_COMMAND="/home/van/.env/python3.12-venv/bin/python main.py"
LOG_FILE="/home/van/project/gpt/gpt.log"
GPT_PROCESS=$(ps aux | grep "$/home/van/.env/python3.12-venv/bin/python main.py" | grep -v grep)
if [ -n "$GPT_PROCESS" ]; then
echo "gpt is running..."
else
cd /home/van/project/gpt/
$GPT_COMMAND > "$LOG_FILE" 2>&1 &
echo "gpt start successfully. Log file: $LOG_FILE"
fi