Skip to content

Commit

Permalink
add a little time
Browse files Browse the repository at this point in the history
  • Loading branch information
mischaikow committed Jun 27, 2024
1 parent cff8029 commit a495919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ docker buildx build --no-cache -t site/backend -f Dockerfile .
docker stop mischaikow-backend
docker run --rm -d -p 5000:5000 --network=mischaikow-home --name mischaikow-backend --init site/backend

sleep 10s
sleep 12s
backend=curl http://127.0.0.1:5000
dt=$(date '+%d/%m/%Y %H:%M:%S')
if [ $backend == 'Backend is up']
Expand All @@ -29,7 +29,7 @@ docker buildx build --no-cache -t site/frontend -f Dockerfile .
docker stop mischaikow-frontend
docker run --rm -d -p 4173:4173 --network=mischaikow-home --name mischaikow-frontend --init site/frontend

sleep 10s
sleep 12s
frontend=$(curl -o /dev/null -s -w "%{http_code}\n" -I http://127.0.0.1:4173)
dt=$(date '+%d/%m/%Y %H:%M:%S')
if [ "$frontend" -eq 200 ]
Expand Down

0 comments on commit a495919

Please sign in to comment.