mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-14 10:30:10 +01:00
9f33b3dfcb
* Updates for Linux for frontend/server * frontend/server docker * updated Dockerfile for deps related to node vectordb * updates for collector in docker * docker deps for ODT processing * ignore another collector dir * storage mount improvements; run as UID * fix pypandoc version typo * permissions fixes
14 lines
324 B
Bash
14 lines
324 B
Bash
#!/bin/bash
|
|
|
|
# Send a request to the specified URL
|
|
response=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:3001/api/ping)
|
|
|
|
# If the HTTP response code is 200 (OK), the server is up
|
|
if [ $response -eq 200 ]; then
|
|
echo "Server is up"
|
|
exit 0
|
|
else
|
|
echo "Server is down"
|
|
exit 1
|
|
fi
|