Skip to content

Commit 939fac4

Browse files
committed
feat: Add and start self-ping functionality to keep the server awake.
1 parent 0d6b2bb commit 939fac4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import app from "./src/app.js";
22
import { PORT } from "./src/config/config.js";
3-
3+
import { startSelfPing } from "./src/helpers/self-ping.js";
44
import { connectDB } from "./src/config/db.js";
55

66
const startServer = () => {
77
app.listen(PORT, () => {
88
console.log(`Server is running on port ${PORT}`);
99
connectDB();
1010

11+
startSelfPing();
1112
// startCronJob();
1213
});
1314
};

0 commit comments

Comments
 (0)