Skip to content

Commit

Permalink
fix: entrypoint use curl to donwload index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nischalstha9 committed Jul 19, 2024
1 parent 7ec17e1 commit dae35ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ get_frontend_index_html() {
if [ ! -f /project/src/backend/templates/index.html ]
then
echo "/project/src/backend/templates/index.html file does not exist...trying to download from object storage.."
wget ${S3_ENDPOINT}/${FRONTEND_BUCKET_NAME}/index.html -O /project/src/backend/templates/index.html || echo "Failed to download index.html... Please retry manually for now...."
curl --fail --create-dirs ${S3_ENDPOINT}/${FRONTEND_BUCKET_NAME}/index.html --output /project/src/backend/templates/index.html || echo "Failed to download index.html... Please retry manually for now...."
else
echo "/project/src/backend/templates/index.html found. Continuing..."
fi
Expand Down

0 comments on commit dae35ca

Please sign in to comment.