-
Notifications
You must be signed in to change notification settings - Fork 92
Add a feature to provide each process the generated ports from other processes #194
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
Conversation
…processes - include the ports generated for other processes in each process definition - Add `OVERMIND_PROCESS_<name>_PORT` settings to each process wrapper script - add docs for the feature
|
Hey @offbyone! Thanks for your contribution! Here are a few things I would change before merging this:
|
|
I'm happy to make all of those changes. I erred on the side of over-gating the feature but it should be easy to simplify. |
|
Looking at my own shell and the Open Group's docs, it looks like $ env FAKE_😂=something env | grep FAKE
FAKE_😂=something
$ bash
bash-5.2$ env FAKE_😂=something env | grep FAKE
FAKE_😂=somethingI was not able to make this fail on any machine I have access to. I didn't see any way to make a procfile with a process whose name contained |
- drop the extra command line flag and gate - add a bit of extra safety to the port environment variable name
Construct the other service port list as the script is generated
The behavior differs from shell to shell. For example, Fish allows variable names to contain only alphanumeric symbols and underscores. I would rather not take risks here; it's better to be safe than sorry. |
|
My example actually was in fish shell. Here's further indications that fish handles environment (as opposed to shell) variables with emoji just fine: $ set var_with_😂 "foo"
set: var_with_😂: invalid variable name. See `help identifiers`
(Type 'help set' for related documentation)
$ env ENV_VAR_WITH_😂=foo fish
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
$ env | grep ENV_VAR_
ENV_VAR_WITH_😂=foo |
|
(that said, if you want me to, I still can carve those out, I don't mind, but I don't think it's an issue here) |
|
I don't worry much about emojis. What I worry about is symbols that a shell can wrongly interpret. For example, Fish doesn't allow using
Here's what Fish's docs say:
So, the fact that it allows emojis in variable names is rather a bug than a feature. As you may have noticed, I don't have much time to maintain Overmind because I am overloaded with https://imgproxy.net. (Also, because I believe that Overmind is already ideal and doesn't need any improvements 😅) Thus, I don't want to push my luck here and hope I won't need to fix this a month later. |
|
Sounds good. I'll strip them down to |
|
Thanks again for your contribution! |
|
Was this feature released? It doesn't seem to be working for me, and the release notes for releases around this time do not seem to mention it. |
|
It was not released. The code from the latest release does not have this feature: https://github.com/DarthSim/overmind/blob/v2.5.1/start/command.go#L88 Example: @DarthSim This is a really useful feature and would love to get it released. Thank you! |
OVERMIND_PROCESS_<name>_PORTsettings to each process wrapper scriptImplements #189