- Azure credentials: Updated successfully
- Docker build: Completed successfully
- Push to Docker Hub: Success
- Deploy to VM: Success
- Health check: Passed (localhost:3010 responding)
The deployment succeeded but https://beta.crove.com returns 502.
- Nginx on VM not configured properly
- Docker container not exposed on correct port
- Firewall blocking port 3010
# SSH to VM
ssh joy@52.172.194.116
# Check Docker containers
docker ps
# Check if Rails is running
docker logs crove-rails --tail 50
# Test local connection
curl http://localhost:3010
# Check Nginx config
sudo cat /etc/nginx/sites-available/crove
# Check Nginx error log
sudo tail -100 /var/log/nginx/error.log
# Restart Nginx if needed
sudo systemctl restart nginx- Restart containers on VM:
ssh joy@52.172.194.116 "cd /home/joy/crove && docker-compose -f docker-compose.production.yml restart"-
Check if container is named correctly: The health check looks for
crove-railsbut deployment might create different container name. -
Verify port mapping: Make sure docker-compose.production.yml maps port 3010 correctly.
- ✅ CI/CD pipeline is now working
- ✅ Code deploys automatically on push to develop/main
⚠️ Site accessibility needs fixing (502 error)- 📝 Need to SSH to VM to diagnose Nginx/Docker issue
- SSH to VM and check container status
- Fix Nginx reverse proxy configuration
- Ensure port 3010 is accessible
- Test end-to-end deployment again