mirror of
https://github.com/philipredstone/relnet.git
synced 2025-06-16 20:51:16 +02:00
fix health check
This commit is contained in:
parent
6ca54dfe9d
commit
88d0c58a35
@ -57,7 +57,7 @@ EXPOSE 80
|
||||
|
||||
# Health check to verify the application is running
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:$PORT/health || exit 1
|
||||
CMD curl -f http://localhost:$PORT/api/health || exit 1
|
||||
|
||||
# Start the application
|
||||
CMD ["bun", "run", "start"]
|
@ -52,7 +52,7 @@ app.use('/api/networks', peopleRoutes);
|
||||
app.use('/api/networks', relationshipRoutes);
|
||||
|
||||
// Health check
|
||||
app.get('/health', (req, res) => {
|
||||
app.get('/api/health', (req, res) => {
|
||||
res.send('OK');
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user