--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/FOkOcKQ68Ew/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
My bad.
Right now I have connections to db for each developer on the same server, so everyone can connect. However there is only one db instance.
What I am saying is that is there a way to do the same for the application server? So users can get served by the same server but on different ports. Is it even possible?
Cause as I said, each user is a developer who is trying to run his specific veraion of the code, locating on his machine.
Not sure if it makes any sense? As I said, since I am newbie, I might ask silly questions.
There is one stable version of code on the server, runing on 80.
The same code is on multiple machines as the base code for further development. Hence testing the new components need the server. This service can come from each machine, on each a node.js server running. This is not a choice for me now.
Another is for each one of those under development codes to be served on the server, each on a specific port.
Since codes are in javascript plus sone python/R, I have both client and server side codes.
I'm not sure it's what you want, but yes, a single node process can listen on any number of ports.
You can even have the same exact request handler function service all those ports.
var http = require('http');
http.createServer(onRequest).listen(3000);
http.createServer(onRequest).listen(3001);
function on request(req, res) { ... }
--
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/FOkOcKQ68Ew/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.