-
Notifications
You must be signed in to change notification settings - Fork 65
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
Portion of updates go get things building/running with node 19, python3 #118
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,24 +9,24 @@ import ( | |
|
||
func proc_stf_provider( o ProcOptions, curIP string ) { | ||
o.binary = o.config.BinPaths.IosVideoStream | ||
|
||
serverHostname := o.config.Stf.HostName | ||
clientHostname, _ := os.Hostname() | ||
serverIP := o.config.Stf.Ip | ||
|
||
location := fmt.Sprintf("macmini/%s", clientHostname) | ||
if o.config.Stf.Location != "" { | ||
location = o.config.Stf.Location | ||
} | ||
|
||
o.startFields = log.Fields { | ||
"client_ip": curIP, | ||
"server_ip": serverIP, | ||
"client_hostname": clientHostname, | ||
"server_hostname": serverHostname, | ||
"location": location, | ||
} | ||
o.binary = "/usr/local/opt/node@12/bin/node" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i guess this could be even shitfed into There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, such things could be shifted into config. I think in this case I did not do so as the proper version and location of node should be detected via additional code instead of being hardcoded. |
||
o.binary = o.config.BinPaths.Node | ||
o.args = []string { | ||
"--inspect=127.0.0.1:9230", | ||
"runmod.js" , "provider", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
macmini
is pretty weird hardcode, is it needed for something at all?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was put here as when this code was used, the names of the machines were not very descriptive, but they were all mac minis. Really this should be a name prefix that can be set if desired in config.