feat: add upstream repo polling every 15 minutes
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user