fix: add start.sh log to the agentapi-start.logs too.
This commit is contained in:
parent
f93b366605
commit
787ce3fe0c
@ -112,7 +112,7 @@ export AGENTAPI_CHAT_BASE_PATH="${AGENTAPI_CHAT_BASE_PATH:-}"
|
||||
export AGENTAPI_ALLOWED_HOSTS="*"
|
||||
|
||||
# Call agentapi-start.sh to write agent-command.sh
|
||||
"$module_path/scripts/agentapi-start.sh"
|
||||
"$module_path/scripts/agentapi-start.sh" &> "$module_path/agentapi-start.log"
|
||||
|
||||
# Build agentapi server command arguments
|
||||
ARGS=(
|
||||
@ -128,7 +128,7 @@ if [ -n "${AGENTAPI_INITIAL_PROMPT}" ]; then
|
||||
ARGS+=("--initial-prompt" "${AGENTAPI_INITIAL_PROMPT}")
|
||||
fi
|
||||
|
||||
# Start agentapi server with the agent-command.sh script
|
||||
nohup agentapi "${ARGS[@]}" -- "$module_path/agent-command.sh" &> "$module_path/agentapi-start.log" &
|
||||
# Start agentapi server with the agent-command.sh script (append logs to same file)
|
||||
nohup agentapi "${ARGS[@]}" -- "$module_path/agent-command.sh" &>> "$module_path/agentapi-start.log" &
|
||||
|
||||
"$module_path/scripts/agentapi-wait-for-start.sh" "${AGENTAPI_PORT}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user