Skip to content

Commit c694a0d

Browse files
committed
Comment out unused user routes and database retry logic in server and app files; disable health check dependency in docker-compose.
1 parent 6f6b331 commit c694a0d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

week7/backend/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ app.get('/health', (req, res) => {
1212
res.status(200).json({ status: 'UP' });
1313
});
1414

15-
app.use('/api/users', userRoutes);
15+
// app.use('/api/users', userRoutes);
1616

1717
export default app;

week7/backend/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ async function startServerWithDbRetry(retries = 10, delayMs = 2000) {
3030
}
3131
}
3232

33-
startServerWithDbRetry();
33+
// startServerWithDbRetry();

week7/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ services:
3636
environment:
3737
DATABASE_URL: postgres://myuser:mypassword@db:5432/mydb
3838
PORT: 3000
39-
depends_on:
40-
db:
41-
condition: service_healthy
39+
# depends_on:
40+
# db:
41+
# condition: service_healthy
4242
networks:
4343
- app-network
4444
volumes:

0 commit comments

Comments
 (0)