@wervt/cli 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +15 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -221,7 +221,8 @@ const deploy = defineCommand({
|
|
|
221
221
|
extract: "Extracting",
|
|
222
222
|
migrate: "Migrating database",
|
|
223
223
|
storage: "Setting up storage",
|
|
224
|
-
activate: "Activating"
|
|
224
|
+
activate: "Activating",
|
|
225
|
+
boot: "Starting"
|
|
225
226
|
};
|
|
226
227
|
const decoder = new TextDecoder();
|
|
227
228
|
let buffer = "";
|
|
@@ -237,11 +238,23 @@ const deploy = defineCommand({
|
|
|
237
238
|
return;
|
|
238
239
|
}
|
|
239
240
|
if (event.done) {
|
|
240
|
-
spinner.stop(`Release ${event.release}`);
|
|
241
|
+
spinner.stop(`Release ${event.release}${event.bootMs === void 0 ? "" : `, started in ${event.bootMs} ms`}`);
|
|
241
242
|
p.outro(`Deployed → ${event.url}`);
|
|
242
243
|
if (process.env.GITHUB_OUTPUT) await appendFile(process.env.GITHUB_OUTPUT, `url=${event.url}\nrelease=${event.release}\n`);
|
|
243
244
|
return;
|
|
244
245
|
}
|
|
246
|
+
if (event.step === "boot-unchecked") {
|
|
247
|
+
p.log.warn("Couldn't check that the release starts. Open the app to make sure.");
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
if (event.step === "boot-failed") {
|
|
251
|
+
spinner.error(`Release ${event.release} didn't start`);
|
|
252
|
+
p.log.message(event.message);
|
|
253
|
+
if (event.restored) p.log.info(`${name} is back on ${event.restored}.`);
|
|
254
|
+
else p.log.warn(`${name} has no earlier release to go back to.`);
|
|
255
|
+
process.exitCode = 1;
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
245
258
|
if (event.step === "storage-failed") {
|
|
246
259
|
p.log.warn(`Storage isn't set up: ${event.message}. The app runs; files won't work yet.`);
|
|
247
260
|
continue;
|