Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance ports #7

Closed
jonbaer opened this issue Oct 30, 2015 · 6 comments
Closed

Instance ports #7

jonbaer opened this issue Oct 30, 2015 · 6 comments

Comments

@jonbaer
Copy link

jonbaer commented Oct 30, 2015

I am currently already using pm2 and deploy 4 instances under their own ports for lb so will the instances declared used incremental ports or do you have to define them somehow?

@andruschka
Copy link
Owner

They will use inc ports :) (pm2 will pick some) since I just started this project, there is currently no option for selecting ports for instances sorry

@jonbaer
Copy link
Author

jonbaer commented Oct 30, 2015

That is what I meant if I specify 8080 to PORT on my main meteor app the instances will take 8080:8081:8082:8083 correct?

@jonbaer
Copy link
Author

jonbaer commented Oct 30, 2015

Just FYI, this is the pm2 example I am currently running (so I am trying to figure out the deploy) ... https://github.com/RocketChat/Rocket.Chat/blob/master/example-pm2.json

@andruschka
Copy link
Owner

Sorry for late response - had a tough week. We didn't use fork_mode thats why you just had to deploy multiple time with different ports... What do you think - what is the best solution for this one? Maybe somethink like "usePorts": [3001,3004,...]
Or just incrementing ports?

@aleritty
Copy link

aleritty commented Nov 7, 2016

+1 to specify ports in some way

@andruschka
Copy link
Owner

It only took 1 year for me 😂
server.freePorts = [3003, 3004]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants