-
Notifications
You must be signed in to change notification settings - Fork 802
Expand file tree
/
Copy path.env.lib_debug
More file actions
21 lines (17 loc) · 836 Bytes
/
Copy path.env.lib_debug
File metadata and controls
21 lines (17 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export RUST_LOG=warn,cocoindex=trace,cocoindex_core=trace,cocoindex_py=trace,cocoindex_py_utils=trace,cocoindex_utils=trace,tower_http=trace
export RUST_BACKTRACE=1
export COCOINDEX_SERVER_CORS_ORIGINS=http://localhost:3000,https://cocoindex.io
# Set COCOINDEX_DEV_ROOT to the directory containing this file (repo root)
# This allows running examples from any subdirectory
export COCOINDEX_DEV_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
# Function for running examples with the local editable cocoindex package
# Usage: coco-dev-run cocoindex update main
coco-dev-run() {
local pyver
if [ -f "$COCOINDEX_DEV_ROOT/.python-version" ]; then
pyver="$(cat "$COCOINDEX_DEV_ROOT/.python-version")"
else
pyver="3.11"
fi
uv run --python "$pyver" --with-editable "$COCOINDEX_DEV_ROOT" "$@"
}