Skip to content

Commit c9ea9c5

Browse files
committed
fix: update docker-compose service image tag and adjust healthcheck intervals; remove debug logs from hooks
1 parent ded7422 commit c9ea9c5

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
# Commercify API Backend
33
commercify-api:
4-
image: ghcr.io/zenfulcode/commercifygo:v1.0-dev
4+
image: ghcr.io/zenfulcode/commercifygo:dev
55
ports:
66
- '6091:6091'
77
environment:
@@ -75,7 +75,7 @@ services:
7575
restart: unless-stopped
7676
healthcheck:
7777
test: ['CMD-SHELL', 'pg_isready -U commercify -d commercify']
78-
interval: 30s
78+
interval: 60s
7979
timeout: 10s
8080
retries: 3
8181
networks:
@@ -100,7 +100,7 @@ services:
100100
restart: unless-stopped
101101
healthcheck:
102102
test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
103-
interval: 30s
103+
interval: 60s
104104
timeout: 10s
105105
retries: 3
106106
start_period: 40s

src/hooks.server.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ const handleCommercify: Handle = async ({ event, resolve }) => {
6262

6363
event.locals.commercify = createCommercifyClient(cookieString);
6464

65-
console.log('Request URL:', event.url.href);
66-
console.log('Node environment:', env.NODE_ENV);
67-
6865
// For shop routes, ensure we have a checkout session and set the cookie
6966
if (event.url.pathname.startsWith('/shop')) {
7067
try {

src/routes/health/+server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const GET: RequestHandler = async ({ url }) => {
66
try {
77
// Check if detailed health check is requested
88
const detailed = url.searchParams.get('detailed') === 'true';
9-
9+
1010
if (detailed) {
1111
// Perform comprehensive health check
1212
const result = await ApiHealthCheck.performHealthCheck();
@@ -51,6 +51,8 @@ export const GET: RequestHandler = async ({ url }) => {
5151
}
5252
}
5353

54+
console.log('Performing simple health check');
55+
5456
// Simple health check
5557
return json(
5658
{

0 commit comments

Comments
 (0)