mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-02 16:00:34 +02:00
Add more logging to run-nginx.sh
This commit is contained in:
parent
9ede8b727d
commit
4eaf2b1200
@ -2,6 +2,12 @@
|
||||
envsubst '$DOMAIN $SSL_CERT_FILE_NAME $SSL_CERT_KEY_FILE_NAME' < "/etc/nginx/conf.d/$1" > /etc/nginx/conf.d/app.conf
|
||||
|
||||
# wait for the api_server to be ready
|
||||
echo "Waiting for API server to boot up; this may take a minute or two..."
|
||||
echo "If this takes more than ~5 minutes, check the logs of the API server container for errors with the following command:"
|
||||
echo
|
||||
echo "docker logs danswer-stack_api_server-1"
|
||||
echo
|
||||
|
||||
while true; do
|
||||
# Use curl to send a request and capture the HTTP status code
|
||||
status_code=$(curl -o /dev/null -s -w "%{http_code}\n" "http://api_server:8080/health")
|
||||
|
Loading…
x
Reference in New Issue
Block a user