b966f20fdb
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
18 lines
481 B
JavaScript
Executable File
18 lines
481 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
'use strict'
|
|
|
|
/**
|
|
* Same as 'www', but runs the app from source code directly through ts-node, so no need to build the app into /dist first.
|
|
* Although ts-node with swc is pretty fast, in production environments you should use `www` and a built app.
|
|
*/
|
|
|
|
require('ts-node/register')
|
|
const debug = require('debug')('speckle:www')
|
|
const { init, startHttp } = require('../app')
|
|
|
|
init()
|
|
.then(({ app }) => startHttp(app))
|
|
.catch((err) => debug(err))
|
|
|
|
// 💥
|