mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-01 20:59:24 +00:00
18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
import Bree from 'bree';
|
|
import path from 'path';
|
|
import Cabin from 'cabin';
|
|
import TSBree from '@breejs/ts-worker';
|
|
|
|
export const isDev = process.env['NODE_ENV'] === 'development';
|
|
|
|
Bree.extend(TSBree);
|
|
|
|
const options: any = {
|
|
defaultExtension: 'js',
|
|
logger: false,
|
|
jobs: [{ name: 'applicationBuildQueue' }]
|
|
};
|
|
if (isDev) options.root = path.join(__dirname, './jobs');
|
|
|
|
export const scheduler = new Bree(options);
|