mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-02 05:09:24 +00:00
wip: trpc
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Bree from 'bree';
|
||||
import path from 'path';
|
||||
// import Cabin from 'cabin';
|
||||
import Cabin from 'cabin';
|
||||
import TSBree from '@breejs/ts-worker';
|
||||
|
||||
export const isDev = process.env['NODE_ENV'] === 'development';
|
||||
@@ -9,16 +9,8 @@ Bree.extend(TSBree);
|
||||
|
||||
const options: any = {
|
||||
defaultExtension: 'js',
|
||||
logger: false,
|
||||
// logger: false,
|
||||
// workerMessageHandler: async ({ name, message }) => {
|
||||
// if (name === 'deployApplication' && message?.deploying) {
|
||||
// if (scheduler.workers.has('autoUpdater') || scheduler.workers.has('cleanupStorage')) {
|
||||
// scheduler.workers.get('deployApplication').postMessage('cancel')
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
jobs: [{ name: 'deployApplication' }, { name: 'worker' }]
|
||||
logger: new Cabin({}),
|
||||
jobs: [{ name: 'applicationBuildQueue' }]
|
||||
};
|
||||
if (isDev) options.root = path.join(__dirname, './jobs');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user