Files
speckle-server/packages/server/bin/www
T

19 lines
448 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict'
const { logger } = require('../dist/observability/logging')
const { init, startHttp } = require('../dist/app')
init()
.then(({ app, graphqlServer, server, readinessCheck }) =>
startHttp({ app, graphqlServer, server, readinessCheck })
)
.catch((err) => {
logger.error(err, 'Failed to start server. Exiting with non-zero exit code...')
// kill it with fire 🔥
process.exit(1)
})
// 💥