-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.envrc.example
More file actions
50 lines (41 loc) · 1.62 KB
/
.envrc.example
File metadata and controls
50 lines (41 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Snipe-IT Development Environment Configuration Template
# Copy this file to .envrc and fill in your actual values
# Run 'direnv allow' after copying and editing
# Docker Configuration
export COMPOSE_PROJECT_NAME=snipe-it-dev
# GitHub Configuration (replace with your actual values)
export GITHUB_USERNAME=your_github_username_here
export GITHUB_TOKEN=your_github_token_here
# Configure git to use token for GitHub authentication
if [[ -n "$GITHUB_TOKEN" && -n "$GITHUB_USERNAME" ]]; then
git config --global url."https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
echo "🔑 GitHub authentication configured"
fi
# Activate Python virtual environment if it exists
if [ -d ".venv" ]; then
source .venv/bin/activate
export VIRTUAL_ENV_PROMPT="snipe-it"
fi
# Database Configuration
export DB_ROOT_PASSWORD=snipe_root_password
export DB_NAME=snipeit
export DB_USER=snipeit
export DB_PASSWORD=snipe_password
export DB_PORT=3306
# Snipe-IT Application Configuration
export APP_DEBUG=true
export APP_ENV=local
export APP_TIMEZONE=UTC
export APP_LOCALE=en
export APP_URL=http://localhost:8080
# Backup Configuration
export BACKUP_SCHEDULE="*/5 * * * *" # Every 5 minutes (change as needed)
export SNIPE_IT_BACKUP_MOUNT=./backups
export SNIPE_IT_MYSQL_TIMEOUT=60
# Generate or set your application key
# Run: docker-compose exec snipe-it php artisan key:generate --show
export SNIPE_APP_KEY=
# Environment loaded message
echo "📦 Snipe-IT development environment loaded"
echo "🐳 Run 'docker-compose up' to start services"
echo "🔧 Run 'uv run python scripts/setup_dev_environment.py' to initialize"