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:
Abhilash Gnan 2019-05-09 04:39:14 +02:00 committed by Ahmet Alp Balkan
parent 876d4f966f
commit 55f5061532
12 changed files with 33 additions and 9 deletions

View file

@ -27,7 +27,7 @@ const logger = pino({
});
class HipsterShopServer {
constructor (protoRoot, port = HipsterShopServer.DEFAULT_PORT) {
constructor (protoRoot, port = HipsterShopServer.PORT) {
this.port = port;
this.packages = {
@ -99,6 +99,6 @@ class HipsterShopServer {
}
}
HipsterShopServer.DEFAULT_PORT = 50051;
HipsterShopServer.PORT = process.env.PORT;
module.exports = HipsterShopServer;