Use env in service manifests for PORT (#212)
* fix shipping service ports * fix product catalog servicde ports * fix paymentservice ports * fix currenservice ports * fix checkoutservice ports * fix emailservice ports * fix frontend app ports * fix recommendationservice ports * fix indentation in service yaml files
This commit is contained in:
parent
876d4f966f
commit
55f5061532
12 changed files with 33 additions and 9 deletions
|
@ -36,7 +36,7 @@ const protoLoader = require('@grpc/proto-loader');
|
|||
const MAIN_PROTO_PATH = path.join(__dirname, './proto/demo.proto');
|
||||
const HEALTH_PROTO_PATH = path.join(__dirname, './proto/grpc/health/v1/health.proto');
|
||||
|
||||
const PORT = 7000;
|
||||
const PORT = process.env.PORT;
|
||||
|
||||
const shopProto = _loadProto(MAIN_PROTO_PATH).hipstershop;
|
||||
const healthProto = _loadProto(HEALTH_PROTO_PATH).grpc.health.v1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue