mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-29 12:33:59 +00:00
wip: trpc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user