wip: trpc

This commit is contained in:
Andras Bacsai
2023-01-12 16:43:41 +01:00
parent c6eaa2c8a6
commit 8980598085
40 changed files with 3210 additions and 194 deletions

View File

@@ -64,7 +64,11 @@ export function createServer(opts: ServerOptions) {
console.log('Coolify server is listening on port', port, 'at 0.0.0.0 🚀');
const graceful = new Graceful({ brees: [scheduler] });
graceful.listen();
scheduler.run('worker');
setInterval(async () => {
if (!scheduler.workers.has('applicationBuildQueue')) {
scheduler.run('applicationBuildQueue');
}
}, 2000);
} catch (err) {
server.log.error(err);
process.exit(1);