-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvelos.toml
More file actions
48 lines (41 loc) · 1.14 KB
/
velos.toml
File metadata and controls
48 lines (41 loc) · 1.14 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
# Velos — Python FastAPI / Uvicorn
# Usage: velos start --config velos.toml
[apps.api]
script = "main.py"
interpreter = "python3"
autorestart = true
max_restarts = 10
min_uptime = 5000
kill_timeout = 10000
max_memory_restart = "512M"
# Watch for development
watch = false
watch_paths = ["app/", "main.py"]
watch_ignore = ["__pycache__", ".git", "*.pyc", ".venv"]
watch_delay = 2000
# Log rotation
log_max_size = "20M"
log_retain_count = 14
[apps.api.env]
PYTHONUNBUFFERED = "1"
APP_ENV = "production"
[apps.api.env_production]
APP_ENV = "production"
DATABASE_URL = "postgresql+asyncpg://prod-db:5432/myapp"
REDIS_URL = "redis://prod-redis:6379/0"
[apps.api.env_development]
APP_ENV = "development"
DATABASE_URL = "postgresql+asyncpg://localhost:5432/myapp_dev"
REDIS_URL = "redis://localhost:6379/0"
LOG_LEVEL = "debug"
# Celery is commented out — uncomment if you have a broker (Redis/RabbitMQ)
# [apps.celery]
# script = "-m"
# interpreter = "python3"
# args = ["celery", "-A", "app.worker", "worker", "--loglevel=info", "--concurrency=2"]
# autorestart = true
# max_restarts = 10
# max_memory_restart = "256M"
#
# [apps.celery.env]
# PYTHONUNBUFFERED = "1"