diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 903c003..f97cefa 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -13,18 +13,10 @@ jobs: run: | git pull origin main - - name: Build frontend - working-directory: /home/ken/workspace/research-workbench/frontend - run: | - npm ci - npm run build - - name: Stop old containers working-directory: /home/ken/workspace/research-workbench run: | - # Stop the old car-help container if still running docker rm -f car-help 2>/dev/null || true - # Stop any existing workbench container docker compose down 2>/dev/null || true - name: Build and start container @@ -39,14 +31,14 @@ jobs: - name: Wait for healthy run: | echo "Waiting for container to start..." - for i in $(seq 1 60); do + for i in $(seq 1 90); do if curl -sf http://localhost:8080/ > /dev/null 2>&1; then echo "App is up at http://localhost:8080/" exit 0 fi sleep 2 done - echo "ERROR: App did not respond within 120s" + echo "ERROR: App did not respond within 180s" docker compose -f /home/ken/workspace/research-workbench/docker-compose.yml logs --tail=50 exit 1