node.js - Node host configuration -


i have vps 10 ip directions , need configure installation of sails.js run on 1 ip direction. default when run project "sails lift" runs on ip directions , dont want it.... want run node projects in specific ip. :)

root@c352 [/home/node/shamman]# sails lift

info: starting app...

info: info: info: sails.js <| info: v0.9.16 |\ info: /|.\ info: / || \ info: ,' |' \ info: .-'.-==|/_--' info: --'-------' info: __---___--___---___--___---___--___ info: ____---___--___---___--___---___--___-__ info: info: server lifted in/home/node/shamman` info: see app, visit localhost:1337 info: shut down sails, press + c @ time.

debug: -------------------------------------------------------- debug: :: fri dec 05 2014 15:44:32 gmt-0430 (vet) debug: debug: environment : development debug: port : 1337 debug: --------------------------------------------------------

i want change host localhost specific ip direction

looks can pass configuration variable host , port.

just make ip address , port want bind to.

{   host: '127.0.0.1',   port: 8080 } 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -