Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/server/src/cli/up.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ it.layer(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer, NetService.layer))
{
label: "a failed update keeps service.env matching the old service",
// The old service still runs, so no foreground server is offered.
prints: "Fix that, then run `t3 up` again.",
prints: "Fix that, then run `t3 up --base-dir <baseDir>` again.",
installed: true,
status: { current: false },
installFails: true,
Expand Down
6 changes: 4 additions & 2 deletions apps/server/src/cli/up.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,9 @@ const setUp = Effect.fn("cli.up")(function* (flags: {
if ("failed" in result && before.service.installed) {
// The old service still runs, so a foreground server would clash with it.
yield* restoreServiceEnv;
const { command } = yield* resolveHostCliCommand("up", baseDirArgs);
yield* Console.log(
`Service setup failed: ${result.failed} Fix that, then run \`t3 up\` again.`,
`Service setup failed: ${result.failed} Fix that, then run \`${command}\` again.`,
);
} else if ("failed" in result) {
yield* printServeCommand(`Service setup failed: ${result.failed}`);
Expand All @@ -387,7 +388,8 @@ const setUp = Effect.fn("cli.up")(function* (flags: {
}),
).pipe(Effect.catchTags({ QuitError: () => Effect.succeed(false) })));
if (!confirmed) {
yield* Console.log("Run `t3 service restart` to turn T3 Connect off.");
const { command } = yield* resolveHostCliCommand("service restart", baseDirArgs);
yield* Console.log(`Run \`${command}\` to turn T3 Connect off.`);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
} else {
if (!interactive && !stopped) {
yield* Console.log("Restarting T3 Code. Running agent turns will stop.");
Expand Down
Loading