mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 21:09:10 +01:00
🚀 OrangeCat Deployment Scripts
This directory contains the complete automated deployment system for OrangeCat.
📋 Scripts Overview
Core Deployment
deploy.js- Main deployment script (the only way to deploy)browser-verify.js- Automated browser testing after deploymentdiagnose.js- Deployment readiness diagnostics
Legacy Scripts (Deprecated)
one-button-deploy.js- Old manual deployment triggerproduction-deploy.js- Legacy production deployment- Other scripts are maintained for reference but should not be used
🎯 How to Deploy
The Only Command You Need
npm run deploy
This runs the complete automated deployment pipeline.
Other Available Commands
# Diagnose deployment readiness
npm run deploy:diagnose
# Force deploy (emergency only)
npm run deploy:force
# Verify browser functionality
npm run deploy:verify
🔧 Script Details
deploy.js
Purpose: Complete automated deployment pipeline
What it does:
- Code quality checks (lint, type-check, security)
- Git commit and push to main
- Trigger GitHub Actions workflow
- Monitor deployment progress
- Browser verification
- Success/failure notifications
Usage: npm run deploy
browser-verify.js
Purpose: Automated browser testing of deployed site
What it does:
- Launches browser and navigates to production
- Tests home page loading
- Tests navigation functionality
- Tests core features
- Captures screenshots for verification
- Checks for JavaScript errors
Usage: npm run deploy:verify
diagnose.js
Purpose: Check deployment readiness
What it does:
- Verifies all prerequisites installed
- Checks authentication status
- Validates project configuration
- Tests production site accessibility
- Provides specific fix recommendations
Usage: npm run deploy:diagnose
📚 Documentation
- Deployment Process - Single source of truth
- Troubleshooting - Common issues and fixes
🔄 Development Workflow
- Make changes in your development environment
- Test locally with
npm run test:e2e - Run diagnostics with
npm run deploy:diagnose - Deploy with
npm run deploy - Monitor deployment progress in terminal/GitHub
- Verify production site works automatically
🚨 Emergency Procedures
If Automated Deployment Fails
- Check GitHub Actions logs
- Run diagnostics:
npm run deploy:diagnose - Manual intervention (rare):
- Check Vercel dashboard
- Verify environment variables
- Check production site manually
Rollback
npm run deploy:rollback
📊 Monitoring
Real-time Monitoring
- Terminal output during deployment
- GitHub Actions workflow status
- Vercel deployment dashboard
Post-deployment
- Production site: https://orangecat.ch
- Health check: https://orangecat.ch/api/health
- GitHub Actions: Repository → Actions tab
🔐 Security
- All scripts validate authentication before proceeding
- Secrets managed through GitHub Secrets and Vercel
- No hardcoded credentials in scripts
- Audit logs maintained in GitHub Actions
🤝 Contributing
When modifying deployment scripts:
- Update this README
- Update main deployment documentation
- Test in staging environment first
- Ensure backward compatibility
- Update diagnostics to catch new issues