pm2 delete handle case of error as optional

This commit is contained in:
Claus-Peter Hübner 2023-02-22 22:57:10 +01:00
parent c9df716eb3
commit 8ab3976542

View File

@ -184,7 +184,7 @@ yarn install
yarn build yarn build
# TODO maybe handle this differently? # TODO maybe handle this differently?
export NODE_ENV=production export NODE_ENV=production
pm2 delete gradido-federation pm2 delete gradido-federation || :
# set FEDERATION_PORT from ARG_API # set FEDERATION_PORT from ARG_API
port=${ARG_API//_/} port=${ARG_API//_/}
FEDERATION_PORT=$(($FEDERATION_PORT + $port)) FEDERATION_PORT=$(($FEDERATION_PORT + $port))