app.listen(3000, (err) => { if (err) { app.log.error(err) process.exit(1) } console.log('server started at', app.server.address().port); });
fastify.listen(config.api.port, config.api.host, (err, address) => { if (err) { reject(err); } console.log('\n'); console.log(`${chalk.blue('API Started at:')} ${address}`); resolve(); });
// Run the server! const start = async () => { try { await fastify.listen(3000, '0.0.0.0') fastify.swagger() fastify.log.info(`server listening on ${fastify.server.address().port}`) } catch (err) { fastify.log.error(err) process.exit(1) } }
fastify.listen(8080).then((address) => { console.log(`API Gateway listening on ${address}`) })
fastify.listen(3005, err => { if (err) throw err console.log(`server listening on ${fastify.server.address().port}`) })
// Run API Service fastify.listen(process.env.PORT || 3100, process.env.HOST || '0.0.0.0', (err, address) => { if (err) throw err console.log('cLoki API up'); fastify.log.info(`server listening on ${address}`) })
const start = async () => { try { await fastify.listen(PORT, HOST) fastify.log.info(`server listening on ${fastify.server.address().port}`) } catch (err) { fastify.log.error(err) process.exit(1) } }
fastify.listen(process.env.PORT || 3000, '0.0.0.0', (err) => { if (err) { fastify.log.error(err); process.exit(1); } console.log(`server running at ${fastify.server.address().port}`) })
fastify.listen(3000, err => { if (err) throw err console.log('Server listenging on http://localhost:3000') })
app.listen(3000, (err) => { if (err) { app.log.error(err) console.error('[Error]: Failed to start the server'); process.exit(1) } })
// Run the server! fastify.listen(3040, function (err, address) { if (err) { fastify.log.error(err) process.exit(1) } fastify.log.info(`server listening on ${address}`) });
app.listen(3000, (err) => { if (err) { app.log.error(err) process.exit(1) } console.log('server started at', app.server.address().port); });
const initServer = async () => { try { await fastify.listen(3001); fastify.swagger(); fastify.log.info(`server is running on port ${fastify.server.address().port}`); } catch(err) { fastify.log.error(err); process.exit(1); } }
fastify.listen(8080).then((address) => { console.log(`API Gateway listening on ${address}`) })
gateway.listen(8080).then((address) => { console.log(`API Gateway listening on ${address}`) })