Closed abitrolly closed 3 years ago
Linked with COMPUTE-124
You need to run a debug build of compute for local development. Currently Visual Studio is required for compiling
I could compile it with Visual Studio Code. Now it works on localhost
. Is it possible to add COMPUTE_HTTP_HOST
to configure the hostname
without recompiling?
Probably best to detect the OS and do the right thing based on if you are in a server or desktop environment
There's a COMPUTE_BIND_URLS
environment variable that you can use to configure the host/port that compute will listen on. If unset, the default for debug builds is http://localhost:8081
. For release builds it's http://+:8081
, which will require the URL to be reserved.
Our docs a little bit behind right now (see the video from @sbaer's recent workshop for the most up-to-date guide). The current recommendation is to ignore compute.frontend and instead run compute.geometry directly -- just in case you weren't doing this already!
@pearswj I don't see the COMPUTE_BIND_URLS
documented - https://github.com/mcneel/compute.rhino3d/blob/master/docs/environment_variables.md
You're right. The majority of those options relate to compute.frontend and the whole thing needs overhauling. I added the COMPUTE_BIND_URLS
env var in 84957e49bacb1fec7a730260e60af5f723bd5bab.
The current recommendation is to ignore compute.frontend and instead run compute.geometry directly -- just in case you weren't doing this already!
I will try to. Thanks. )
Is it possible to run it on Windows 10 for development purposes? It fails with
err: frontend Url not reserved
. Runningnetsh http add urlacl url="http://+:80/" user="Everyone"
in administrator console gives this: