-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdevbox.json
More file actions
95 lines (95 loc) · 2.57 KB
/
devbox.json
File metadata and controls
95 lines (95 loc) · 2.57 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json",
"packages": {
"python": "3.13",
"git": "latest",
"uv": "latest",
"poetry": {
"version": "latest",
// this fails because is trying to find a pyproject.toml at the root of the project
"disable_plugin": true
},
// use this since 23.7.0 builds locally and takes a long time
"nodejs": "23.6.1",
"pnpm": "latest"
},
"env": {
"VENV_DIR": "$DEVBOX_PROJECT_ROOT/src/backend/.venv",
"DEVBOX_PYPROJECT_DIR": "$DEVBOX_PROJECT_ROOT/src/backend"
},
"shell": {
"scripts": {
"install": [
"cd src",
"pnpm --dir frontend install",
"cd backend",
"poetry install",
"cd ../..",
"[ -e '.env' ] || (cp src/sample.env .env && echo '.env file has been created, PLEASE CHECK THAT ALL PROPERTIES ARE PROPERLY SET!')"
],
"postgres": [
"docker compose up --build postgres migrations"
],
"keycloak": [
"docker compose up keycloak"
],
"new-migration": [
"[[ -n $1 ]] || (echo 'Missing revision message!' && exit 1)",
"cd src/backend",
"poetry run alembic revision --autogenerate -m \"$1\""
],
"migrations": [
"cd src/backend",
"poetry run alembic upgrade head"
],
"generate-secret-key": [
"cd src/backend",
"poetry run python -c \"from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())\""
],
"backend": [
"cd src/backend",
"poetry run python -m tero 0"
],
"frontend": [
"cd src/frontend",
"pnpm dev"
],
"secrets-cleanup": [
"cd src/backend",
"poetry run python -m tero.secrets_cleanup"
],
"vllm": [
"./scripts/vllm.sh"
],
"playwright": [
"docker compose up playwright"
],
"browser": [
"pnpm --dir src/browser-extension install",
"pnpm --dir src/browser-extension run dev --port 6173"
],
"browser-build": [
"cd src/browser-extension",
"pnpm build",
"cd dist",
"[ ! -e browser-copilot.zip ] || rm browser-copilot.zip",
"zip -r browser-copilot.zip *"
],
"check": [
"cd src/backend",
"poetry run pyright"
],
"tests": [
"cd src/backend",
"poetry run pytest -vv $1"
],
"docker-app": [
"docker compose up --build app"
],
"docs": [
"cd docs",
"pnpm dev"
]
}
}
}