Skip to content

Commit 6170f6f

Browse files
committed
wip
1 parent 6e9108a commit 6170f6f

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

_test-stacks/all-workloads/bun.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
"workspaces": {
44
"": {
55
"dependencies": {
6+
"@hono/node-server": "^1.19.6",
67
"hono": "^4.10.7",
78
},
89
},
910
},
1011
"packages": {
12+
"@hono/node-server": ["@hono/[email protected]", "", { "peerDependencies": { "hono": "^4" } }, "sha512-Shz/KjlIeAhfiuE93NDKVdZ7HdBVLQAfdbaXEaoAVO3ic9ibRSLGIQGkcBbFyuLr+7/1D5ZCINM8B+6IvXeMtw=="],
13+
1114
"hono": ["[email protected]", "", {}, "sha512-icXIITfw/07Q88nLSkB9aiUrd8rYzSweK681Kjo/TSggaGbOX4RRyxxm71v+3PC8C/j+4rlxGeoTRxQDkaJkUw=="],
1215
}
1316
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": {
3+
"@hono/node-server": "^1.19.6",
34
"hono": "^4.10.7"
45
}
56
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/* eslint-disable antfu/no-top-level-await */
21
const triggerEvent = JSON.parse(process.env.STP_TRIGGER_EVENT_DATA!);
32

4-
await new Promise((resolve) => setTimeout(resolve, 5000));
5-
63
console.log(triggerEvent);
7-
8-
throw new Error('Test error');
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
import { serve } from '@hono/node-server';
12
import { Hono } from 'hono';
23

34
const app = new Hono();
4-
app.get('/', (c) => c.text('Hello Bun!'));
55

6-
export default app;
6+
app.get('/', (c) => c.text('Hello Node.js!'));
7+
8+
const port = Number(process.env.PORT) || 3000;
9+
10+
serve({ fetch: app.fetch, port });
11+
12+
console.info(`Container started successfully. Listening on port ${port}.`);

_test-stacks/all-workloads/src/lambda.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { Handler } from 'aws-lambda';
22

33
const handler: Handler = async (event, context) => {
44
console.log(event, context);
5-
throw new Error('Test error');
65
return {
76
statusCode: 200,
87
body: JSON.stringify({

docs/code-snippets/web-services/basic-usage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ app.get('/', async (req, res) => {
66
res.send({ message: 'Hello' });
77
});
88

9-
// for your use port number stored in PORT environment variable for your application
109
// this environment variable is automatically injected by Stacktape
1110
app.listen(process.env.PORT, () => {
1211
console.info(`Server running on port ${process.env.PORT}`);

src/domain/packaging-manager/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,10 @@ export class PackagingManager {
340340
}) => {
341341
const shouldUseCache = this.#shouldWorkloadUseCache({ workloadName, commandCanUseCache });
342342

343-
// console.log(workloadName, shouldUseCache, deploymentArtifactManager.getExistingDigestsForJob(jobName));
344343
const existingDigests = shouldUseCache ? deploymentArtifactManager.getExistingDigestsForJob(jobName) : [];
345344
const packagingType = packaging.type;
346345
const progressLogger = eventManager.getNamespacedInstance({ eventType: parentEventType, identifier: jobName });
347346

348-
// Docker remote cache refs (enabled by default, can be disabled with --disable-docker-remote-cache)
349347
const useRemoteCache = !globalStateManager.args.disableDockerRemoteCache;
350348
const cacheRef = useRemoteCache ? getCacheRef(jobName) : undefined;
351349

@@ -441,6 +439,7 @@ export class PackagingManager {
441439
}),
442440
additionalDigestInput
443441
});
442+
console.dir({ sharedProps, result }, { depth: 5 });
444443
this.#packagedJobs.push({ ...result, skipped: result.outcome === 'skipped' });
445444
return result;
446445
}

0 commit comments

Comments
 (0)