MCPcopy Create free account
hub / github.com/WeaveMindAI/weft / is_local_deployment

Function is_local_deployment

catalog/code/:exec/python/backend.rs:190–192  ·  view source on GitHub ↗

True iff this node-runner is running in the local-dev deployment mode. Anything other than the literal value "cloud" is treated as local: this matches dev.sh which defaults DEPLOYMENT_MODE to "local" and the K8s manifests which set it to "cloud" explicitly.

()

Source from the content-addressed store, hash-verified

188/// matches dev.sh which defaults DEPLOYMENT_MODE to "local" and the K8s manifests
189/// which set it to "cloud" explicitly.
190fn is_local_deployment() -> bool {
191 std::env::var("DEPLOYMENT_MODE").as_deref() != Ok("cloud")
192}
193
194enum ExecOutcome {
195 Ok {

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected