AI Features
Usage
Semantic Search
Usage
Server & Platform
Usage
Repository Storage (REPOS_DIR)
TheREPOS_DIR environment variable controls where wit stores git repositories on disk. This is a critical setting for the platform to function correctly.
How It Works
When you create a repository through the web UI, wit:- Creates a bare git repository at
{REPOS_DIR}/{username}/{repo-name}.git - Stores the path
/repos/{username}/{repo-name}.gitin the database - Resolves this path using
REPOS_DIRwhen accessing the repository
Configuration Examples
Troubleshooting
If you’re getting “Repository not found on disk” errors:-
Check where repos are stored:
-
Set REPOS_DIR to match:
-
Restart the server:
Migration
If you need to move repositories to a new location:Git Configuration
wit checks
WIT_* variables first, then falls back to GIT_* variables.
Usage
Code Review
Usage
Email Notifications
Email configuration for collaborator invitations.Usage
GitHub Integration
Usage
SSH Configuration
Development & Debugging
Usage
Rate Limiting
Example Configuration
Development Environment
Production Environment
CI/CD Environment
Loading Environment Variables
Using .env Files
wit supports.env files in your project root:
Using direnv
For project-specific configuration:Shell Configuration
Add to your shell profile (~/.bashrc, ~/.zshrc):
Security Best Practices
- Never commit secrets - Use
.envfiles and add them to.gitignore - Use different keys per environment - Dev, staging, production
- Rotate secrets regularly - Especially for production
- Use secret managers - AWS Secrets Manager, HashiCorp Vault, etc.