Opal-Estate-Pro/node_modules/tiny-lr/examples/express/server.js

13 lines
317 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
const port = process.env.LR_PORT || process.env.PORT || 35729;
process.env.DEBUG = process.env.DEBUG || 'tinylr*';
const debug = require('debug')('tinylr:server');
const app = require('./app');
debug('Starting server');
app.listen(port, function (err) {
if (err) throw err;
debug('listening on %d', port);
});