We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1c64c commit de0adf1Copy full SHA for de0adf1
1 file changed
apps/api/src/worker.ts
@@ -1,6 +1,18 @@
1
+import http from "node:http";
2
+import { env } from "@/config/env";
3
import { startTrackingWorker } from "@/workers/tracking-worker";
4
5
function main() {
6
+ const PORT = Number(env.PORT) || 10_000;
7
+ http
8
+ .createServer((_req, res) => {
9
+ res.writeHead(200);
10
+ res.end("Worker is running");
11
+ })
12
+ .listen(PORT, "0.0.0.0");
13
+
14
+ console.log(`[Worker] Health check server on port ${PORT}`);
15
16
startTrackingWorker();
17
}
18
0 commit comments