()
| 36 | } |
| 37 | |
| 38 | function run() { |
| 39 | const port = process.env.PORT || 4000; |
| 40 | |
| 41 | // Start up the Node server |
| 42 | const server = app(); |
| 43 | server.listen(port, () => { |
| 44 | console.log(`Node Express server listening on http://localhost:${port}`); |
| 45 | }); |
| 46 | } |
| 47 | |
| 48 | // Webpack will replace 'require' with '__webpack_require__' |
| 49 | // '__non_webpack_require__' is a proxy to Node 'require' |