robwormald / ng-universal-demo

256 stars 126 forks source link

on which port the node server is running ? #4

Closed sinsunsan closed 7 years ago

sinsunsan commented 7 years ago

hello,

I am trying the new demo but the node server do not mention on which port it is listening. So I do not know how to test.

Hash: a780dfcd678f02b66f10
Version: webpack 2.2.1
Time: 31715ms
  Asset     Size  Chunks                    Chunk Names
   0.js  1.82 kB       0  [emitted]
main.js  1.35 MB       1  [emitted]  [big]  main
   [0] ./~/rxjs/Observable.js 5.45 kB {1} [built]
   [2] ./~/@angular/core/@angular/core.es5.js 466 kB {1} [built]
  [14] ./~/@angular/platform-browser/@angular/platform-browser.es5.js 148 kB {1} [built]
  [22] ./~/rxjs/symbol/observable.js 631 bytes {1} [built]
  [43] ./~/@angular/router/@angular/router.es5.js 166 kB {1} [built]
  [44] ./~/@angular/http/@angular/http.es5.js 62.4 kB {1} [built]
  [45] ./~/@angular/platform-server/@angular/platform-server.es5.js 72.2 kB {1} [built]
  [46] ./src/app.ts 381 bytes {1} [built]
  [80] ./src/ngfactory async 160 bytes {1} [built]
  [82] ./src/express-engine.ts 712 bytes {1} [built]
  [83] ./src/ngfactory/src/app.server.ngfactory.ts 27.8 kB {1} [built]
  [84] ./~/express/index.js 224 bytes {1} [built]
  [85] ./~/zone.js/dist/zone-node.js 71.6 kB {1} [built]
 [160] ./~/rxjs/operator/share.js 923 bytes {1} [built]
 [180] ./src/main.server.ts 735 bytes {1} [built]
    + 168 hidden modules

WARNING in ./~/express/lib/view.js
78:29-56 Critical dependency: the request of a dependency is an expression

> ng-universal-demo@1.0.0 server /Users/slucas/ng-universal-demo
> node dist/main.js

listening...

Listening on which port ?

thiagoaslima commented 7 years ago

On porta 8000. You can check this on "src/main.server.ts" file

sinsunsan commented 7 years ago

Ok thanks, I had browsed the files rapidly but not seen. Can you change to

app.listen(8000,() => {
    console.log('listening on port 8000...')
});

or parametrize the port but for the moment a simple debug of the port would be good

Thanks anyway...