create-svc 0.1.21 → 0.1.22
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/package.json
CHANGED
|
@@ -28,7 +28,7 @@ describe("buildPostScaffoldCommands", () => {
|
|
|
28
28
|
describe("buildDeploymentVerificationCommands", () => {
|
|
29
29
|
test("uses curl health checks for HTTP services", () => {
|
|
30
30
|
expect(buildDeploymentVerificationCommands({ apiHostname: "api.launch.anmho.com", framework: "hono", runtime: "bun" })).toEqual([
|
|
31
|
-
{ command: "sh", args: ["-c", 'curl --fail --show-error --silent "https://api.launch.anmho.com/
|
|
31
|
+
{ command: "sh", args: ["-c", 'curl --fail --show-error --silent "https://api.launch.anmho.com/"'] },
|
|
32
32
|
{ command: "sh", args: ["-c", 'curl --fail --show-error --silent "https://api.launch.anmho.com/readyz"'] },
|
|
33
33
|
{
|
|
34
34
|
command: "sh",
|
|
@@ -54,7 +54,7 @@ describe("buildDeploymentVerificationCommands", () => {
|
|
|
54
54
|
command: "sh",
|
|
55
55
|
args: [
|
|
56
56
|
"-c",
|
|
57
|
-
'curl --fail --show-error --silent "$(gcloud run services describe launch-api --project anmho-infra-prod --region us-west1 --format=value(status.url))/
|
|
57
|
+
'curl --fail --show-error --silent "$(gcloud run services describe launch-api --project anmho-infra-prod --region us-west1 --format=value(status.url))/"',
|
|
58
58
|
],
|
|
59
59
|
});
|
|
60
60
|
});
|
package/src/post-scaffold.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function buildDeploymentVerificationCommands(
|
|
|
61
61
|
const origin = verificationOrigin(config);
|
|
62
62
|
const tokenCommand = `TOKEN="$(bun ${serviceCliPath(config)} auth token)"`;
|
|
63
63
|
return [
|
|
64
|
-
shellVerificationCommand(`curl --fail --show-error --silent "${origin}/
|
|
64
|
+
shellVerificationCommand(`curl --fail --show-error --silent "${origin}/"`),
|
|
65
65
|
shellVerificationCommand(`curl --fail --show-error --silent "${origin}/readyz"`),
|
|
66
66
|
protectedVerificationCommand(config, origin, tokenCommand),
|
|
67
67
|
];
|