Skip to content

Commit

Permalink
use deployed plugin registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mmchougule committed Jul 4, 2024
1 parent 2fc33ed commit 66cc858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,13 @@ func connect() (*grpc.ClientConn, pb.PluginRegistryClient) {
logger := log.GetLogger(context.Background())
// get url and port from config file. TODO Create it if it doesn't exist
configFile := os.Getenv("HOME") + "/.vimana/registry.toml"
// set to localhost if running registry locally
url := os.Getenv("PLUGIN_REGISTRY_URL")
port := "50051"

// if url is not set, use default value
if url == "" {
url = "localhost"
url = "registry.vistara.dev"
}

if _, err := os.Stat(configFile); os.IsExist(err) {
Expand Down

0 comments on commit 66cc858

Please sign in to comment.