diff options
Diffstat (limited to 'dist/index.js')
| -rw-r--r-- | dist/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/index.js b/dist/index.js index 9392034..7628251 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,11 +1,12 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -console.log('Hello, TypeScript!'); +console.log('Welcome to the CS3099 Server thingy!'); const app_1 = require("./app"); +// use default port 3000 or port supplied by OS const port = process.env.PORT || 3000; app_1.default.listen(port, (err) => { if (err) { return console.log(err); } - return console.log(`server is listening on ${port}`); + return console.log(`server is listening on port ${port}`); }); |
