Your DCCI website now has a complete deployment system that makes it super easy to switch between staging and production deployments!
npm run td- Builds with
testconfiguration - Deploys to
dcci-ministries-stagingFirebase project - Safe for testing changes before going live
npm run ld- Builds with
productionconfiguration - Deploys to
dcci-ministriesFirebase project - Updates your live website
- ✅
scripts/deploy.js- Main Node.js deployment script - ✅
scripts/deploy-staging.bat- Windows batch file for staging - ✅
scripts/deploy-production.bat- Windows batch file for production - ✅
scripts/deploy-staging.ps1- PowerShell script for staging - ✅
scripts/deploy-production.ps1- PowerShell script for production
- ✅
npm run td- Test deploy (staging) - ✅
npm run ld- Live deploy (production) - ✅
npm run deploy:staging- Alternative staging command - ✅
npm run deploy:production- Alternative production command - ✅
npm run td:win- Windows batch file staging - ✅
npm run ld:win- Windows batch file production
- ✅
docs/deployment-guide.md- Complete deployment guide - ✅ This summary document
- Builds your app using
testconfiguration - Switches to staging Firebase project (
dcci-ministries-staging) - Deploys to staging hosting
- Result: Live at
https://dcci-ministries-staging.web.app
- Builds your app using
productionconfiguration - Switches to production Firebase project (
dcci-ministries) - Deploys to production hosting
- Result: Live at
https://dcci-ministries.web.app
npm run start:dev- Local development and testing
- Uses development Firebase project
npm run td- Deploy to staging for testing
- Safe environment to validate changes
- Client review and approval
npm run ld- Deploy to live website
- After staging approval
- Production release
- Confirmation prompt before production deployment
- Clear warnings about live website updates
- Project verification before deployment
- Build failure detection - stops deployment if build fails
- Firebase project verification - ensures correct project
- Deployment status checking - confirms successful deployment
scripts/
├── deploy.js # Main deployment script
├── deploy-staging.bat # Windows staging batch
├── deploy-production.bat # Windows production batch
├── deploy-staging.ps1 # PowerShell staging
└── deploy-production.ps1 # PowerShell production
docs/
├── deployment-guide.md # Complete deployment guide
└── environment-setup.md # Environment configuration guide
src/environments/
├── environment.ts # Development
├── environment.test.ts # Staging
├── environment.prod.test.ts # Production-like testing
└── environment.prod.ts # Production
Make sure you have:
- ✅ Firebase CLI installed:
npm install -g firebase-tools - ✅ Firebase login:
firebase login - ✅ Access to both Firebase projects
npm run tdnpm run ld# Direct script execution
node scripts/deploy.js staging
node scripts/deploy.js production
# Windows batch files
scripts\deploy-staging.bat
scripts\deploy-production.bat
# PowerShell
.\scripts\deploy-staging.ps1
.\scripts\deploy-production.ps1- 🚀 One-command deployments to any environment
- 🔄 Automatic Firebase project switching
- 🛡️ Safety checks and confirmations
- 📱 Multiple deployment methods (npm, batch, PowerShell)
- 🔍 Clear feedback and status updates
- 📚 Comprehensive documentation
- Test staging deployment:
npm run td - Verify staging site at
https://dcci-ministries-staging.web.app - Deploy to production when ready:
npm run ld - Verify production site at
https://dcci-ministries.web.app
Your deployment system is now ready! You can safely test changes on staging before going live with production. 🎯
