mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-10 22:15:16 +00:00
Merge pull request #4167 from Dokploy/fix/server-listen-before-init
fix: start server listener before initialization to prevent healthcheck failures
This commit is contained in:
@@ -56,6 +56,8 @@ void app.prepare().then(async () => {
|
|||||||
setupDockerStatsMonitoringSocketServer(server);
|
setupDockerStatsMonitoringSocketServer(server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server.listen(PORT, HOST);
|
||||||
|
console.log(`Server Started on: http://${HOST}:${PORT}`);
|
||||||
if (process.env.NODE_ENV === "production" && !IS_CLOUD) {
|
if (process.env.NODE_ENV === "production" && !IS_CLOUD) {
|
||||||
createDefaultMiddlewares();
|
createDefaultMiddlewares();
|
||||||
await initializeNetwork();
|
await initializeNetwork();
|
||||||
@@ -65,9 +67,6 @@ void app.prepare().then(async () => {
|
|||||||
await initVolumeBackupsCronJobs();
|
await initVolumeBackupsCronJobs();
|
||||||
await sendDokployRestartNotifications();
|
await sendDokployRestartNotifications();
|
||||||
}
|
}
|
||||||
|
|
||||||
server.listen(PORT, HOST);
|
|
||||||
console.log(`Server Started on: http://${HOST}:${PORT}`);
|
|
||||||
await initEnterpriseBackupCronJobs();
|
await initEnterpriseBackupCronJobs();
|
||||||
|
|
||||||
if (!IS_CLOUD) {
|
if (!IS_CLOUD) {
|
||||||
|
|||||||
Reference in New Issue
Block a user