Renaming cart service env vars

Renaming Cart service environment variables:
CART_SERVICE_ADDR => LISTEN_ADDR
CART_SERVICE_PORT => PORT
This commit is contained in:
Simon Zeltser 2018-06-27 22:28:04 -07:00
parent 0d07d08b4a
commit edf1553be9
2 changed files with 8 additions and 8 deletions

View file

@ -11,14 +11,14 @@ namespace cartservice
{
class Program
{
const string CART_SERVICE_ADDRESS = "CART_SERVICE_ADDR";
const string CART_SERVICE_ADDRESS = "LISTEN_ADDR";
const string REDIS_ADDRESS = "REDIS_ADDR";
const string CART_SERVICE_PORT = "CART_SERVICE_PORT";
const string CART_SERVICE_PORT = "PORT";
[Verb("start", HelpText = "Starts the server listening on provided port")]
class ServerOptions
{
[Option('h', "hostname", HelpText = "The ip on which the server is running. If not provided, CART_SERVICE_ADDR environment variable value will be used. If not defined, localhost is used")]
[Option('h', "hostname", HelpText = "The ip on which the server is running. If not provided, LISTEN_ADDR environment variable value will be used. If not defined, localhost is used")]
public string Host { get; set; }
[Option('p', "port", HelpText = "The port on for running the server")]