chore(telemetry): align shell_exec and dev_server_start cwd to flattened workspace root
This commit is contained in:
@@ -4508,10 +4508,7 @@ async function toolShellExec(
|
||||
const result = await execInDevContainer({
|
||||
projectId: project.id,
|
||||
command,
|
||||
cwd:
|
||||
typeof params.cwd === "string"
|
||||
? params.cwd
|
||||
: `/workspace/${project.slug}`,
|
||||
cwd: typeof params.cwd === "string" ? params.cwd : "/workspace",
|
||||
timeoutMs: Number.isFinite(Number(params.timeoutMs))
|
||||
? Number(params.timeoutMs)
|
||||
: Number.isFinite(Number(params.timeout_ms))
|
||||
|
||||
@@ -908,7 +908,7 @@ export async function startDevServer(
|
||||
|
||||
const launch =
|
||||
`mkdir -p /var/log/vibn-dev && ` +
|
||||
`cd /workspace/${opts.projectSlug} && ` +
|
||||
`cd /workspace && ` +
|
||||
`nohup env PORT=${opts.port} VIBN_DEV_SERVER_ID=${id} ` +
|
||||
`bash -lc ${shellEscape(listenSafeCommand)} > ${logFile} 2>&1 & ` +
|
||||
`echo $!`;
|
||||
|
||||
Reference in New Issue
Block a user