bartonhammond / snowflake-hapi-openshift

:snowflake: A node.js Hapi server that runs locally and on OpenShift with MongoDB and Redis
MIT License
132 stars 38 forks source link

Fix README typo and server start error method #10

Closed iskWang closed 7 years ago

iskWang commented 7 years ago

In first time start, it didn't return any message from browser(http://192.168.0.5:5000) So I add this error display and find a typo :)

before

> showflake-hapi-openshift@0.0.1 start /Users/josh/lab/snowflake-hapi-openshift
> cp ./README.md src/docs && node server.js

Server is running: http://Joshde-MacBook-Pro.local:5000

after

> showflake-hapi-openshift@0.0.1 start /Users/josh/lab/snowflake-hapi-openshift
> cp ./README.md src/docs && node server.js

{ Error: listen EADDRNOTAVAIL 192.168.0.5:5000
    at Object.exports._errnoException (util.js:1008:11)
    at exports._exceptionWithHostPort (util.js:1031:20)
    at Server._listen2 (net.js:1240:19)
    at listen (net.js:1289:10)
    at net.js:1399:9
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:577:11)
    at run (bootstrap_node.js:352:7)
    at startup (bootstrap_node.js:144:9)
    at bootstrap_node.js:467:3
  code: 'EADDRNOTAVAIL',
  errno: 'EADDRNOTAVAIL',
  syscall: 'listen',
  address: '192.168.0.5',
  port: 5000 }
bartonhammond commented 7 years ago

Thanks @iskWang