Skip to content

Commit fd65d78

Browse files
chore: Resolve DATA_CACHE_DIR in .env.development (#306)
1 parent 59cd86d commit fd65d78

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.env.development

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ AUTH_URL="http://localhost:3000"
2323
# AUTH_GOOGLE_CLIENT_ID=""
2424
# AUTH_GOOGLE_CLIENT_SECRET=""
2525

26-
#DATA_CACHE_DIR="" # Path to the sourcebot cache dir (ex. ~/sourcebot/.sourcebot)
26+
DATA_CACHE_DIR=${PWD}/.sourcebot # Path to the sourcebot cache dir (ex. ~/sourcebot/.sourcebot)
27+
# CONFIG_PATH=${PWD}/config.json # Path to the sourcebot config file (if one exists)
2728

2829
# Email
2930
# EMAIL_FROM_ADDRESS="" # The from address for transactional emails.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"dev:zoekt": "yarn with-env zoekt-webserver -index .sourcebot/index -rpc",
1313
"dev:backend": "yarn with-env yarn workspace @sourcebot/backend dev:watch",
1414
"dev:web": "yarn with-env yarn workspace @sourcebot/web dev",
15-
"dev:review-agent": "yarn with-env yarn workspace @sourcebot/review-agent dev",
1615
"watch:mcp": "yarn workspace @sourcebot/mcp build:watch",
1716
"watch:schemas": "yarn workspace @sourcebot/schemas watch",
1817
"dev:prisma:migrate:dev": "yarn with-env yarn workspace @sourcebot/db prisma:migrate:dev",

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"type": "module",
77
"scripts": {
8-
"dev:watch": "tsc-watch --preserveWatchOutput --onSuccess \"yarn dev --cacheDir ../../.sourcebot\"",
8+
"dev:watch": "tsc-watch --preserveWatchOutput --onSuccess \"yarn dev\"",
99
"dev": "node ./dist/index.js",
1010
"build": "tsc",
1111
"test": "cross-env SKIP_ENV_VALIDATION=1 vitest --config ./vitest.config.ts"

packages/backend/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import "./instrument.js";
22

33
import * as Sentry from "@sentry/node";
4-
import { ArgumentParser } from "argparse";
54
import { existsSync } from 'fs';
65
import { mkdir } from 'fs/promises';
76
import path from 'path';
@@ -37,8 +36,6 @@ process.on('unhandledRejection', (reason, promise) => {
3736
process.exit(1);
3837
});
3938

40-
console.log(process.cwd());
41-
4239
const cacheDir = env.DATA_CACHE_DIR;
4340
const reposPath = path.join(cacheDir, 'repos');
4441
const indexPath = path.join(cacheDir, 'index');

0 commit comments

Comments
 (0)