feat: add upstream repo polling every 15 minutes

This commit is contained in:
plenarius
2026-04-20 21:55:52 -04:00
parent 3784d9f13a
commit b224ebc927
2 changed files with 35 additions and 0 deletions
+2
View File
@@ -16,6 +16,7 @@ import githubRouter from "./routes/github.js";
import reposRouter from "./routes/repos.js";
import { attachWebSocket, createTerminalSession } from "./services/terminal.service.js";
import { attachLspWebSocket } from "./services/lsp.service.js";
import { startUpstreamPolling } from "./services/git.service.js";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const app = express();
@@ -77,4 +78,5 @@ server.on("upgrade", (request, socket, head) => {
const PORT = parseInt(process.env.PORT || "3000", 10);
server.listen(PORT, "0.0.0.0", () => {
console.log(`Layonara Forge listening on http://0.0.0.0:${PORT}`);
startUpstreamPolling();
});