mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
17 lines
526 B
TypeScript
17 lines
526 B
TypeScript
/// <reference types="./global.d.ts" />
|
|
import './prelude';
|
|
|
|
import { Logger } from '@nestjs/common';
|
|
|
|
import { createApp } from './app';
|
|
|
|
const app = await createApp();
|
|
const listeningHost = AFFiNE.deploy ? '0.0.0.0' : 'localhost';
|
|
await app.listen(AFFiNE.port, listeningHost);
|
|
|
|
const logger = new Logger('App');
|
|
|
|
logger.log(`AFFiNE Server is running in [${AFFiNE.type}] mode`);
|
|
logger.log(`Listening on http://${listeningHost}:${AFFiNE.port}`);
|
|
logger.log(`And the public server should be recognized as ${AFFiNE.baseUrl}`);
|