# Git Workflow & Deployment ## Branch Strategy ``` main (production) │ └── develop (staging) │ └── feature branches ``` ## Environments | Branch | URL | Purpose | |--------|-----|---------| | **main** | sitmente.com | Live production | | **develop** | sitmente-git-develop...vercel.app | Testing/staging | | **PR previews** | vercel.app/pr-*** | Feature testing | ## Workflow ### 1. Development (on VPS) ```bash # Work on develop branch git checkout develop # ... make changes ... git add -A && git commit -m "Description" git push origin develop ``` ### 2. Test on Staging - Vercel auto-deploys `develop` branch - URL: Check Vercel dashboard - Test all changes ### 3. Production ```bash # Merge to main git checkout main git merge develop git push origin main ``` ## Vercel Auto-Deploy | Event | Action | |-------|--------| | Push to `main` | Auto-deploy to sitmente.com | | Push to `develop` | Auto-deploy to preview URL | | Open PR | Create preview deployment | ## Current Status - ✅ **main** → sitmente.com (production) - ✅ **develop** → staging (testing) - ✅ **Preview deployments** → Auto for all branches