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({
|
const result = await execInDevContainer({
|
||||||
projectId: project.id,
|
projectId: project.id,
|
||||||
command,
|
command,
|
||||||
cwd:
|
cwd: typeof params.cwd === "string" ? params.cwd : "/workspace",
|
||||||
typeof params.cwd === "string"
|
|
||||||
? params.cwd
|
|
||||||
: `/workspace/${project.slug}`,
|
|
||||||
timeoutMs: Number.isFinite(Number(params.timeoutMs))
|
timeoutMs: Number.isFinite(Number(params.timeoutMs))
|
||||||
? Number(params.timeoutMs)
|
? Number(params.timeoutMs)
|
||||||
: Number.isFinite(Number(params.timeout_ms))
|
: Number.isFinite(Number(params.timeout_ms))
|
||||||
|
|||||||
@@ -908,7 +908,7 @@ export async function startDevServer(
|
|||||||
|
|
||||||
const launch =
|
const launch =
|
||||||
`mkdir -p /var/log/vibn-dev && ` +
|
`mkdir -p /var/log/vibn-dev && ` +
|
||||||
`cd /workspace/${opts.projectSlug} && ` +
|
`cd /workspace && ` +
|
||||||
`nohup env PORT=${opts.port} VIBN_DEV_SERVER_ID=${id} ` +
|
`nohup env PORT=${opts.port} VIBN_DEV_SERVER_ID=${id} ` +
|
||||||
`bash -lc ${shellEscape(listenSafeCommand)} > ${logFile} 2>&1 & ` +
|
`bash -lc ${shellEscape(listenSafeCommand)} > ${logFile} 2>&1 & ` +
|
||||||
`echo $!`;
|
`echo $!`;
|
||||||
|
|||||||
Reference in New Issue
Block a user