This guide provides comprehensive instructions for rolling back LocalLoop deployments in emergency situations. We use the official Vercel rollback commands - simple, reliable, and well-documented.
For immediate emergencies, use Vercel Dashboard:
- Access Vercel Dashboard: https://vercel.com/jacksonr64/localloop
- Navigate to Deployments tab
- Find the last known good deployment
- Click the three dots (⋯) next to the deployment
- Select "Promote to Production"
- Confirm the rollback
⏱️ Total time: ~30 seconds
Our GitHub Actions workflow uses the official Vercel CLI rollback commands - no complex parsing or custom logic needed!
- GitHub repository access
- VERCEL_TOKEN secret configured in repository settings
- Go to GitHub Actions: https://github.com/JacksonR64/LocalLoop/actions
- Select "🔄 Vercel Rollback" workflow
- Click "Run workflow"
- Choose your rollback method:
- Automatic Rollback: Leave "deployment_url" empty - rolls back to previous deployment
- Specific Rollback: Enter a specific deployment URL to rollback to that exact version
- Enter reason: Provide a reason for the rollback (for logging)
- Click "Run workflow"
# Automatic rollback to previous deployment
vercel rollback --token $VERCEL_TOKEN --yes
# Rollback to specific deployment
vercel rollback [deployment-url] --token $VERCEL_TOKEN --yesAutomatic Rollback:
- Deployment URL: (leave empty)
- Reason: "Critical bug in latest release"
Specific Rollback:
- Deployment URL:
https://local-loop-abc123.vercel.app - Reason: "Rollback to version before payment issue"
If you have Vercel CLI installed locally:
# Install Vercel CLI (if not already installed)
npm install -g vercel
# Automatic rollback to previous deployment
vercel rollback
# Rollback to specific deployment
vercel rollback https://your-deployment-url.vercel.appAfter any rollback:
- Check the site: Visit https://localloop.vercel.app
- Verify functionality: Test critical features
- Check deployment status:
vercel ls
- Monitor logs: Watch for any errors in Vercel dashboard
- Immediate: Use Vercel Dashboard rollback (30 seconds)
- Follow-up: Trigger GitHub Actions rollback for documentation
- Investigation: Identify and fix the root cause
- Communication: Notify team and stakeholders
- Use GitHub Actions workflow for proper logging and audit trail
- Document the reason in the workflow input
- Verify the rollback was successful
- Plan the fix for the next deployment
- Check VERCEL_TOKEN: Ensure the secret is properly configured
- Verify permissions: Ensure the token has deployment permissions
- Check deployment URL: If using specific rollback, verify the URL exists
- Hobby Plan Limitation: Can only rollback to immediately preceding deployment
- Try Dashboard Method: Use Vercel dashboard as backup
- Contact Support: If issues persist, contact Vercel support
- Always provide a clear reason when triggering rollbacks
- Use automatic rollback unless you need a specific version
- Test after rollback to ensure the issue is resolved
- Document the incident for future reference
- Fix the root cause before the next deployment
- Vercel Dashboard: https://vercel.com/jacksonr64/localloop
- GitHub Actions: https://github.com/JacksonR64/LocalLoop/actions
- Rollback Workflow: https://github.com/JacksonR64/LocalLoop/actions/workflows/rollback.yml
- Vercel CLI Docs: https://vercel.com/docs/cli/rollback
Remember: The Vercel dashboard method is fastest for true emergencies. Use GitHub Actions for planned rollbacks with proper documentation and audit trails.
- Go to: https://vercel.com/jacksonr64/localloop
- Click "Deployments" tab
- Find the deployment you want to rollback to
- Copy the deployment URL (e.g.,
https://localloop-abc123.vercel.app)
# List recent deployments
vercel ls
# Get specific deployment info
vercel inspect <deployment-url>- Identify the issue requiring rollback
- Determine the last known good deployment
- Notify team members about the rollback
- Document the issue for post-mortem
- Choose appropriate rollback method (dashboard vs. automated)
- Execute rollback procedure
- Monitor deployment status
- Verify application functionality
- Confirm application is working correctly
- Update team on rollback completion
- Create issue for bug fix
- Plan hotfix deployment if needed
Solution: Verify that VERCEL_TOKEN secret is configured in GitHub repository settings
- Go to: Settings → Secrets and variables → Actions
- Ensure VERCEL_TOKEN is present and valid
Solution: Verify the deployment URL is correct and accessible
# Check if deployment exists
vercel inspect <deployment-url>Solution: Check repository permissions and workflow file syntax
- Ensure you have Actions write permissions
- Verify
.github/workflows/rollback.ymlsyntax
Solution:
- Check if the issue is in the database/external services
- Consider rolling back database migrations if applicable
- Verify DNS propagation (may take a few minutes)
In case of critical issues during rollback:
- Technical Lead: [Add contact info]
- DevOps Team: [Add contact info]
- On-call Engineer: [Add contact info]
- Investigate root cause of the issue
- Create hotfix branch from the rolled-back version
- Apply minimal fix to resolve the critical issue
- Test thoroughly in staging environment
- Deploy hotfix through normal CI/CD pipeline
- Monitor closely after deployment
- Conduct post-mortem to understand what went wrong
- Update testing procedures to catch similar issues
- Improve monitoring to detect issues faster
- Update rollback procedures based on lessons learned
Last Updated: [Current Date] Tested: ✅ Workflow successfully triggered and validated Status: Ready for emergency use