1.6 KiB
1.6 KiB
Continuous Delivery - Quick Start
Start Auto-Deployment in 10 Seconds
.\start-cd.ps1 watch
That's it! Your changes will now automatically commit and push to GitHub.
What Happens Now?
- Edit any file and save
- Wait 30 seconds after your last change
- Automatically commits with change summary
- Automatically pushes to GitHub
- Repeat!
Common Commands
# Start file watcher (recommended)
.\start-cd.ps1 watch
# Start timer mode (every 5 minutes)
.\start-cd.ps1 start
# Commit and push once, right now
.\start-cd.ps1 once
# Stop all CD processes
.\start-cd.ps1 stop
# Check git status
.\start-cd.ps1 status
Example Output
[14:23:45] Changed: setup.php
[14:23:47] Changed: docker-compose.yml
Debounce period elapsed. Processing 2 changes...
ℹ Found 2 changed files
✓ Committed changes
✓ Successfully pushed to GitHub
Continuing to watch for changes...
What Gets Auto-Committed?
- Application code (PHP, JS, CSS)
- Configuration files
- Documentation
- SQL schemas
What's Excluded?
- Session files (
f_data/data_sessions/) - Cache files (
f_data/data_cache/) - Database files (
db_data/) - Log files (
*.log) - Dependencies (
node_modules/,vendor/)
Troubleshooting
Not detecting changes?
- Check if file is in
.gitignore
Need to stop?
- Press
Ctrl+Cor run.\start-cd.ps1 stop
Want custom settings?
- Edit
.cd-config.json
Full Documentation
See CONTINUOUS_DELIVERY_GUIDE.md for complete documentation.
Ready? Run .\start-cd.ps1 watch and start coding!