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
GH-268 #269
GH-268 #269
Conversation
…or additional ports
…or additional ports
…for additional ports
…te for additional ports
The general idea in this implementation is to stop treating |
I'm torn on this feature. The idea seems decent, but I'm hesitant to create a new standard (PORT1, PORT2, etc) without careful consideration. Is it possible to do the PORT math inline or in a wrapper script? |
I know what you mean. I've been going over 2 different approaches:
I went with the first option to keep it backwards-compatible. Imagine a situation like this: example: run.sh --listen PORT --serve PORT In this case it is quite obvious we need 2 different ports. example: run.sh --listen PORT --verify PORT In this case the --verify might mean that we need the same port. Sure we might suggest that it makes no sense but if you take the current behavior it is exactly what would happen: the same port number would be passed on twice. That leaves with another choice:
BTW this feature in its current form keeps the PORT variable intact meaning it is an extension rather than a completely new standard. That way we can kill two birds with one stone, in a matter of speaking. HTH |
I think I'm going to err on the side of simplicity for now and say that this shouldn't be part of foreman. I really do appreciate the effort you put into this pull request. |
I understand it is controversial to put it in the core of Foreman. Do you see any other option, like a plugin or something, that this functionality could exist in? I hate to create a fork just to include this feature as this makes maintaining it an unnecessary burden. |
I would solve this using binscripts.
|
Pull request with changes implementing the ability to declare multiple PORTs. See examples. Implements #268