blob: 31d3b45f04c142d0cc50dc46e85dc91a1604d72c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
if has nix; then
if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" \
"sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0="
fi
nix_direnv_watch_file ./shell.nix
use flake .
fi
export RUST_LOG="kittybox=trace,sqlx=trace,tower_http::trace=debug,info"
export BACKEND_URI="postgres://localhost?dbname=kittybox&host=/run/postgresql"
export JOB_QUEUE_URI="postgres://localhost?dbname=kittybox&host=/run/postgresql"
export BLOBSTORE_URI=file://./media-store
export AUTH_STORE_URI=file://./auth-store
export COOKIE_SECRET=1234567890abcdefghijklmnopqrstuvwxyz
# Add DATABASE_URL for `cargo test` invocations
export DATABASE_URL="postgres://localhost?dbname=kittybox&host=/run/postgresql"
|