Deployment GuideΒΆ
OverviewΒΆ
RapidTriageME can be deployed in multiple environments. This guide covers all deployment scenarios from local development to production.
Deployment OptionsΒΆ
π Quick DeployΒΆ
# Clone repository
git clone https://github.com/YarlisAISolutions/rapidtriageME.git
cd rapidtriageME
# Install dependencies
npm install
# Deploy to production
./scripts/04-deploy.sh production
π Deployment MethodsΒΆ
Method | Use Case | Time | Complexity |
---|---|---|---|
Local Testing | Development | 1 min | Easy |
Cloudflare Workers | Production | 5 min | Medium |
Custom Domain | Branded deployment | 10 min | Medium |
Full Production | Enterprise | 15 min | Advanced |
PrerequisitesΒΆ
Required ToolsΒΆ
- Node.js >= 18.0.0
- npm >= 9.0.0
- Git >= 2.0.0
- Cloudflare Account (free tier works)
- Chrome Browser >= 120
Required AccountsΒΆ
- Cloudflare Account
- Sign up at cloudflare.com
- Free plan is sufficient
-
Note your Account ID
-
GitHub Account (optional)
- For documentation hosting
- For version control
Environment SetupΒΆ
1. Clone RepositoryΒΆ
2. Install DependenciesΒΆ
3. Configure EnvironmentΒΆ
Required environment variables:
# Cloudflare Configuration
CLOUDFLARE_ACCOUNT_ID=your_account_id
CLOUDFLARE_API_TOKEN=your_api_token # Optional with OAuth
# Application Settings
BROWSER_TOOLS_PORT=3025
NODE_ENV=production
4. Authenticate with CloudflareΒΆ
Deployment WorkflowΒΆ
graph TD
A[Start] --> B[Setup Environment]
B --> C[Configure Cloudflare]
C --> D{Local Test?}
D -->|Yes| E[Run Local Server]
D -->|No| F[Deploy to Cloudflare]
E --> G[Test Extension]
F --> H[Configure Domain]
H --> I[Test Production]
G --> J[Ready for Development]
I --> K[Production Ready]
Quick CommandsΒΆ
DevelopmentΒΆ
# Start local server
./scripts/02-test-local.sh
# Watch for changes
npm run dev
# Run tests
npm test
DeploymentΒΆ
# Deploy to staging
wrangler deploy --env staging
# Deploy to production
wrangler deploy --env production
# Check deployment status
wrangler tail --env production
MaintenanceΒΆ
Project StructureΒΆ
rapidtriageME/
βββ src/ # Source code
β βββ worker.ts # Main worker
β βββ types/ # TypeScript types
βββ rapidtriage-extension/ # Chrome extension
βββ rapidtriage-mcp/ # MCP server
βββ scripts/ # Deployment scripts
β βββ 01-load-env.sh # Environment loader
β βββ 02-test-local.sh # Local testing
β βββ 03-oauth-login.sh # Cloudflare auth
β βββ 04-deploy.sh # Deployment
β βββ 05-add-dns.sh # DNS setup
βββ docs-site/ # Documentation
βββ wrangler.toml # Cloudflare config
βββ package.json # Dependencies
Configuration FilesΒΆ
wrangler.tomlΒΆ
name = "rapidtriage-me"
main = "src/worker.ts"
compatibility_date = "2024-12-12"
[env.production]
name = "rapidtriage-production"
route = "rapidtriage.me/*"
vars = { BROWSER_TOOLS_PORT = "3025" }
package.json ScriptsΒΆ
{
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"test": "vitest",
"build": "tsc"
}
}
TroubleshootingΒΆ
Common IssuesΒΆ
Authentication Failed
DNS Not Resolving
Wait 5-10 minutes for DNS propagation
Next StepsΒΆ
- π Local Testing Guide
- βοΈ Cloudflare Setup
- π Domain Configuration
- π Production Deployment
- π§ Domain & Subdomain Setup - NEW: Complete domain deployment guide
- π SSL/TLS Configuration - NEW: Fix SSL issues and configure HTTPS
SupportΒΆ
- Documentation: docs.rapidtriage.me
- GitHub Issues: Report bugs
- Community: Discord Server