Then may I propose my original response again? Just run a bunch of different node instances on the server, one for each developer with a different port on each. I guess i'm not capable of understanding the problem. Sorry.
On Mon, Feb 10, 2014 at 12:47 PM, Arman Didandeh <arman.didan...@gmail.com>wrote: > 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. > On Feb 10, 2014 3:41 PM, "Mark Hahn" <m...@hahnca.com> wrote: > >> > each user is a developer who is trying to run his specific version of >> the code, locating on his machine. >> >> This custom code, is it a server or a client? If it is server code then >> are you asking for the user's machine to accept requests on multiple ports? >> >> We are going in circles with this discussion. Can you give more details >> about the nature of the code? What code is running on each machine, >> including any central server. What does the code do? >> >> >> >> On Mon, Feb 10, 2014 at 12:33 PM, Arman Didandeh < >> arman.didan...@gmail.com> wrote: >> >>> 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. >>> On Feb 10, 2014 3:29 PM, "Mark Hahn" <m...@hahnca.com> wrote: >>> >>>> I may be oversimplifying your request but if you mean can one node >>>> executable take http requests from multiple ports then the answer is yes, >>>> if you use a reverse proxy. You could set up nginx to accept requests on >>>> different ports and proxy them all to one node server. There might be an >>>> easier way that I can't think of right now. >>>> >>>> I'm confused as to why this would be useful. Why can't your users all >>>> go to one port? There will be absolutely no difference at the http level. >>>> >>>> >>>> >>>> On Mon, Feb 10, 2014 at 12:02 PM, Arman Didandeh < >>>> arman.didan...@gmail.com> wrote: >>>> >>>>> 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? >>>>> On Feb 10, 2014 2:58 PM, "Mark Hahn" <m...@hahnca.com> wrote: >>>>> >>>>>> I'm sorry but I'm getting lost at this sentence ... >>>>>> >>>>>> > I trying to deploy a similar connection for the DB over the network >>>>>> >>>>>> >>>>>> You haven't mentioned a DB before. A node server is a very different >>>>>> thing than a DB server. >>>>>> >>>>>> Maybe someone else can understand better? I might not be thinking >>>>>> straight today. >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Feb 10, 2014 at 11:27 AM, Arman Didandeh < >>>>>> arman.didan...@gmail.com> wrote: >>>>>> >>>>>>> Let me describe the situation a bit more. >>>>>>> >>>>>>> So what I have right now is a repo, the code for which has been >>>>>>> written by someone else. Now I have myself and other developers who >>>>>>> cloned >>>>>>> the code on our machines to extend it. >>>>>>> >>>>>>> Since each developer is working on different modules, I do not want >>>>>>> us to commit or branch on the repo and have the repo run on my server. >>>>>>> In >>>>>>> fact, I want a separate stable thing to run, and I was planning for each >>>>>>> developer to run and test their added codes on their own machines. >>>>>>> However >>>>>>> some machines are down in RAM, so I trying to deploy a similar >>>>>>> connection >>>>>>> for the DB over the network (with different users and even possibly >>>>>>> different DB clones), but this time on different ports. >>>>>>> >>>>>>> If this is what you pointed out, could you please forward me to some >>>>>>> instruction, as I am not very good at these things YET! >>>>>>> >>>>>>> Cheers >>>>>>> >>>>>>> >>>>>>> On 10 February 2014 14:21, Mark Hahn <m...@hahnca.com> wrote: >>>>>>> >>>>>>>> Interesting question. One would think than you could put the http >>>>>>>> server example in the code multiple times with a different variable for >>>>>>>> each httpserver. I don't see any reason why that wouldn't work. >>>>>>>> Should >>>>>>>> only take a few minutes to try it. >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Feb 10, 2014 at 11:00 AM, Arman Didandeh < >>>>>>>> arman.didan...@gmail.com> wrote: >>>>>>>> >>>>>>>>> So there is no way to run one executable that listens to different >>>>>>>>> ports? >>>>>>>>> >>>>>>>>> >>>>>>>>> On 10 February 2014 13:58, Mark Hahn <m...@hahnca.com> wrote: >>>>>>>>> >>>>>>>>>> It should be as simple as running a different node executable for >>>>>>>>>> each server. In other words you'd do >>>>>>>>>> >>>>>>>>>> node server1.js >>>>>>>>>> node server2.js >>>>>>>>>> node server3.js >>>>>>>>>> >>>>>>>>>> where each executable is using a different port. You might want >>>>>>>>>> to make the port an argument so you could say `node server.js 8080`. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Mon, Feb 10, 2014 at 10:48 AM, Arman Didandeh < >>>>>>>>>> arman.didan...@gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Dear all, >>>>>>>>>>> >>>>>>>>>>> I am a newbie when it comes to node.js, so I need your help >>>>>>>>>>> towards running multiple instances of my node.js server on my >>>>>>>>>>> machine. >>>>>>>>>>> >>>>>>>>>>> I do not want to use other tools that manage this and prefer to >>>>>>>>>>> do the confing to learn more. >>>>>>>>>>> >>>>>>>>>>> Also I do not need to assign each of these instances to a core >>>>>>>>>>> (as I have seen is very popular in discussion forums). >>>>>>>>>>> >>>>>>>>>>> All I need is for my local machine (which is acting as the >>>>>>>>>>> server during the development phase), to be able to listen to >>>>>>>>>>> different >>>>>>>>>>> ports. This way myself and other developers can test their changes >>>>>>>>>>> in code >>>>>>>>>>> through these connections and once everything is stable, each >>>>>>>>>>> person could >>>>>>>>>>> commit to our git repo. Also the same machine is working as the >>>>>>>>>>> actual >>>>>>>>>>> server for current users so it is probably using port 80. >>>>>>>>>>> >>>>>>>>>>> Thanks in advance for your helps. >>>>>>>>>>> >>>>>>>>>>> Cheers all, >>>>>>>>>>> Arman >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> -- >>>>>>>>>>> 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 nodejs@googlegroups.com >>>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>>>>>>>>> >>>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out >>>>>>>>>>> . >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> -- >>>>>>>>>> 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 nodejs@googlegroups.com >>>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> -- >>>>>>>>> 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 nodejs@googlegroups.com >>>>>>>>> To unsubscribe from this group, send email to >>>>>>>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> -- >>>>>>>> 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 nodejs@googlegroups.com >>>>>>>> To unsubscribe from this group, send email to >>>>>>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> 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 nodejs@googlegroups.com >>>>>>> To unsubscribe from this group, send email to >>>>>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>>> >>>>>> >>>>>> -- >>>>>> -- >>>>>> 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 nodejs@googlegroups.com >>>>>> To unsubscribe from this group, send email to >>>>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>> -- >>>>> -- >>>>> 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 nodejs@googlegroups.com >>>>> To unsubscribe from this group, send email to >>>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>> >>>> -- >>>> -- >>>> 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 nodejs@googlegroups.com >>>> To unsubscribe from this group, send email to >>>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> -- >>> -- >>> 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 nodejs@googlegroups.com >>> To unsubscribe from this group, send email to >>> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- >> -- >> 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 nodejs@googlegroups.com >> To unsubscribe from this group, send email to >> nodejs+unsubscr...@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+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > -- > -- > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.