This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/index.js
2017-07-06 20:59:45 -07:00

14 lines
364 B
JavaScript

require('./init');
const app = require('./server').default;
const http = require('http');
const server = http.createServer(app.callback());
server.listen(process.env.PORT || '3000');
server.on('error', err => {
throw err;
});
server.on('listening', () => {
const address = server.address();
console.log(`Listening on http://localhost:${address.port}`);
});