Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cli): t3 up's retry and restart hints keep --base-dir #30480

Mergedspoukyii(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/30480/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 5 additions and 3 deletions.

x
0 of 2 viewed, 2 left
1 addition and 1 deletionapps/server/src/cli/up.test.tsModified
View file
@@ -221,7 +221,7 @@
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,
4 additions and 2 deletionsapps/server/src/cli/up.tsModified
View file
@@ -367,8 +367,9 @@
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}`);
@@ -387,7 +388,8 @@
}),
).pipe(Effect.catchTags({ QuitError: () => Effect.succeed(false) })));
if (!confirmed) {
- yield* Console.log("Run `t3 service restart` to turn T3 Connect off.");