Files
davila7__claude-code-templates/docs/guides/deployment.md
Dani 6866f91f10 refactor: Reorganize project structure for better maintainability
Moved files to improve project organization:

📦 Scripts → /scripts:
- dev-server.js
- generate_agents_api.py
- generate_claude_jobs.py
- generate_components_json.py
- generate_trending_data.py
- sync-api.sh

📚 Documentation → /docs/guides:
- claude-jobs.md (was CLAUDE_JOBS_README.md)
- deployment.md (was DEPLOYMENT.md)
- discord-bot-setup.md (was DISCORD_BOT_SETUP.md)
- growth-kit-pr.md (was GROWTH_KIT_PR.md)

🖼️ Images → /docs/images:
- social-preview.png

Updated all references:
- .github/workflows/update-json-data.yml
- CLAUDE.md
- docs/CLAUDE.md
- docs/api/README.md
- docs/guides/growth-kit-pr.md
- cli-tool/src/validation/README.md

Result:
- Root directory reduced from ~24 files to 13 essential config files
- Better separation of concerns (scripts, docs, images)
- Follows industry-standard project structure
- Easier navigation and maintenance

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-20 16:25:18 -05:00

60 lines
1.5 KiB
Markdown

# 🚀 Deployment Guide
This project is configured for automatic deployment to Vercel from the `main` branch.
## GitHub Actions Setup
### Required Secrets
Add these secrets to your GitHub repository settings:
1. **VERCEL_TOKEN**: Your Vercel account token
- Go to [Vercel Account Settings](https://vercel.com/account/tokens)
- Create a new token with appropriate permissions
- Add as `VERCEL_TOKEN` in GitHub Secrets
2. **VERCEL_ORG_ID**: Your Vercel organization ID
- Run `vercel link` in your project
- Copy the `orgId` from `.vercel/project.json`
- Add as `VERCEL_ORG_ID` in GitHub Secrets
3. **VERCEL_PROJECT_ID**: Your Vercel project ID
- Run `vercel link` in your project
- Copy the `projectId` from `.vercel/project.json`
- Add as `VERCEL_PROJECT_ID` in GitHub Secrets
### Getting the IDs
Run these commands in your project root:
```bash
# Link to Vercel project
vercel link
# Get your IDs from the generated file
cat .vercel/project.json
```
## Deployment Flow
- ✅ **Push to main** → Automatic production deploy to aitmpl.com
- ✅ **Other branches** → Manual deploy only (no auto-deploy)
- ✅ **Pull Requests** → No deployment
## Manual Deployment
For testing other branches:
```bash
# Deploy current branch to preview URL
vercel
# Deploy current branch to production
vercel --prod
```
## Domain Configuration
The main branch deploys to the custom domain: **aitmpl.com**
Configured in Vercel dashboard under Project Settings → Domains.