Skip to content

How to specify different hosts? #823

@bbhxwl

Description

@bbhxwl
Image
import os

from dapr.clients import DaprClient


os.environ.setdefault("DAPR_HOST", "100.103.9.86")
os.environ.setdefault("DAPR_HTTP_PORT", "32805")
os.environ.setdefault("DAPR_GRPC_PORT", "40365")
dapr = DaprClient(address="100.103.9.86:40365")
val = dapr.get_state("test")
print(val)


Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions