Changed redis connection opening to be synchronous call
Also added exception handling for GetCartAsync
This commit is contained in:
parent
86b45cd8ff
commit
f2ee88a9a2
1 changed files with 3 additions and 2 deletions
|
@ -23,12 +23,13 @@ GOTO End1
|
||||||
|
|
||||||
:docker_local
|
:docker_local
|
||||||
set REDIS_PORT=6379
|
set REDIS_PORT=6379
|
||||||
set REDIS_ADDR=0.0.0.0:%REDIS_PORT%
|
set REDIS_ADDR=redis:%REDIS_PORT%
|
||||||
set LISTEN_ADDR=0.0.0.0
|
set LISTEN_ADDR=0.0.0.0
|
||||||
set PORT=7070
|
set PORT=7070
|
||||||
|
|
||||||
echo run docker container with redis
|
echo run docker container with redis
|
||||||
start docker run -d --name=redis -p %REDIS_PORT%:%REDIS_PORT% redis
|
docker rm --force redis
|
||||||
|
start "" docker run -d --name=redis -p %REDIS_PORT%:%REDIS_PORT% redis
|
||||||
|
|
||||||
echo building container image for cart service
|
echo building container image for cart service
|
||||||
docker build -t cartservice ..\.
|
docker build -t cartservice ..\.
|
||||||
|
|
Loading…
Reference in a new issue