-
Notifications
You must be signed in to change notification settings - Fork 452
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
[HttpWorker]Expand environment variables specified in startup command #5692
Comments
Overriding For running HttpWorker standalone and locally, you can set the environment. Can you please add more details on the scenario setting port would be useful? |
I meant provide the ability to pass the port that was selected by the host to the startup command as an argument (or part of an argument). Currently what I have put above doesn't seem to work work. |
Ahh, I think it would be useful to support expanding environment variables provided in the start up command. |
PR is now open that supports expanding environment variables provided in httpWorker section using "httpWorker": {
"description": {
"defaultExecutablePath": "%TestEnv%",
"defaultWorkerPath": "%TestEnv%",
"arguments": [
"-S",
"0.0.0.0:%TestEnv%"
],
"workerArguments": [
"0.0.0.0:%TestEnv%"
]
}
} Note: Added |
Thanks! Will this work for Linux as well using the same notation? Do you have an example of how
|
Yes. It should work on linux as well. Some discussion here: dotnet/runtime#25792 For workerArguments, yes what you provided will be the command used to launch.
"httpWorker": {
"description": {
"defaultExecutablePath": "exe/runtime such as node, dotnet etc.",
"defaultWorkerPath": "worker for the exe provided",
"arguments": [
"arg1",
"arg2"
],
"workerArguments": [
"workerArg1",
"workerArg2"
]
}
} |
cc @yojagad |
Some startup commands require
FUNCTIONS_HTTPWORKER_PORT
to be passed to it. Couldn't find a way to do this. The following doesn't seem to work:The text was updated successfully, but these errors were encountered: