mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 15:46:29 +08:00
17 lines
399 B
TypeScript
17 lines
399 B
TypeScript
import { Logger } from '@nestjs/common';
|
|
import { CommandFactory } from 'nest-commander';
|
|
|
|
async function bootstrap() {
|
|
process.env.SERVER_FLAVOR = 'script';
|
|
|
|
await import('../prelude');
|
|
const { CliAppModule } = await import('./app');
|
|
await CommandFactory.run(CliAppModule, new Logger()).catch(e => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
});
|
|
process.exit(0);
|
|
}
|
|
|
|
await bootstrap();
|