diff --git a/infrastructure/cdk/src/providers/blog.ts b/infrastructure/cdk/src/providers/blog.ts index e4ff00d85..524397897 100644 --- a/infrastructure/cdk/src/providers/blog.ts +++ b/infrastructure/cdk/src/providers/blog.ts @@ -40,7 +40,7 @@ export class BlogStack extends cdk.Stack { domainName: `${subdomains.blog}.${rootDomain}`, // e.g. blog.casimir.co or blog.dev.casimir.co domainZone: hostedZone, taskImageOptions: { - containerPort: 4000, + containerPort: 4001, image: ecs.ContainerImage.fromDockerImageAsset(imageAsset), environment: { PROJECT: project, diff --git a/services/blog/src/index.ts b/services/blog/src/index.ts index bb71320ea..3c0796cbd 100644 --- a/services/blog/src/index.ts +++ b/services/blog/src/index.ts @@ -44,6 +44,10 @@ app.get('/articles/:id', async (req, res) => { } }) +app.get('/health', (_req, res) => { + res.status(200).send('OK') +}) + app.listen(4001, () => { console.log('Blog server listening on port 4001') })