diff --git a/grpc/client.js b/grpc/client.js index a02820d..6cc0153 100644 --- a/grpc/client.js +++ b/grpc/client.js @@ -45,7 +45,7 @@ function main() { if (argv.target) { target = argv.target; } else { - target = 'localhost:50051'; + target = process.env.GRPC_TARGET || 'localhost:50051'; } var client = new news_proto.News(target, grpc.credentials.createInsecure());