mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
chore: Resolve DATA_CACHE_DIR in .env.development (#306)
This commit is contained in:
parent
59cd86d23e
commit
fd65d78475
4 changed files with 3 additions and 6 deletions
|
|
@ -23,7 +23,8 @@ AUTH_URL="http://localhost:3000"
|
|||
# AUTH_GOOGLE_CLIENT_ID=""
|
||||
# AUTH_GOOGLE_CLIENT_SECRET=""
|
||||
|
||||
#DATA_CACHE_DIR="" # Path to the sourcebot cache dir (ex. ~/sourcebot/.sourcebot)
|
||||
DATA_CACHE_DIR=${PWD}/.sourcebot # Path to the sourcebot cache dir (ex. ~/sourcebot/.sourcebot)
|
||||
# CONFIG_PATH=${PWD}/config.json # Path to the sourcebot config file (if one exists)
|
||||
|
||||
# Email
|
||||
# EMAIL_FROM_ADDRESS="" # The from address for transactional emails.
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
"dev:zoekt": "yarn with-env zoekt-webserver -index .sourcebot/index -rpc",
|
||||
"dev:backend": "yarn with-env yarn workspace @sourcebot/backend dev:watch",
|
||||
"dev:web": "yarn with-env yarn workspace @sourcebot/web dev",
|
||||
"dev:review-agent": "yarn with-env yarn workspace @sourcebot/review-agent dev",
|
||||
"watch:mcp": "yarn workspace @sourcebot/mcp build:watch",
|
||||
"watch:schemas": "yarn workspace @sourcebot/schemas watch",
|
||||
"dev:prisma:migrate:dev": "yarn with-env yarn workspace @sourcebot/db prisma:migrate:dev",
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev:watch": "tsc-watch --preserveWatchOutput --onSuccess \"yarn dev --cacheDir ../../.sourcebot\"",
|
||||
"dev:watch": "tsc-watch --preserveWatchOutput --onSuccess \"yarn dev\"",
|
||||
"dev": "node ./dist/index.js",
|
||||
"build": "tsc",
|
||||
"test": "cross-env SKIP_ENV_VALIDATION=1 vitest --config ./vitest.config.ts"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import "./instrument.js";
|
||||
|
||||
import * as Sentry from "@sentry/node";
|
||||
import { ArgumentParser } from "argparse";
|
||||
import { existsSync } from 'fs';
|
||||
import { mkdir } from 'fs/promises';
|
||||
import path from 'path';
|
||||
|
|
@ -37,8 +36,6 @@ process.on('unhandledRejection', (reason, promise) => {
|
|||
process.exit(1);
|
||||
});
|
||||
|
||||
console.log(process.cwd());
|
||||
|
||||
const cacheDir = env.DATA_CACHE_DIR;
|
||||
const reposPath = path.join(cacheDir, 'repos');
|
||||
const indexPath = path.join(cacheDir, 'index');
|
||||
|
|
|
|||
Loading…
Reference in a new issue