@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
27 lines (26 loc) • 935 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
const _nestjspino = require("nestjs-pino");
const _appbootstrap = require("./app.bootstrap");
const _appservice = require("./app.service");
const _configenvironment = require("./configuration/config.environment");
async function bootstrap() {
const app = await (0, _appbootstrap.appBootstrap)();
const logger = app.get(_nestjspino.Logger);
await app.listen({
host: _configenvironment.configuration.server.host,
port: _configenvironment.configuration.server.port
}, (error, address)=>{
if (error) {
logger.error(`Server listening error at ${address} : ${error}`, 'HTTP');
process.exit(1);
} else {
logger.log(`Server listening at ${address}`, 'HTTP');
}
});
}
_appservice.AppService.clusterize(bootstrap);
//# sourceMappingURL=main.js.map