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
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:
11
start.sh
Normal file
11
start.sh
Normal 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
|
||||
Reference in New Issue
Block a user