diff --git a/deploy b/deploy index a1630ef..61d7af9 100755 --- a/deploy +++ b/deploy @@ -10,5 +10,5 @@ HOST_PORT="4000" git pull docker build -t "$IMAGE_NAME" . -docker stop "$CONTAINER_NAME" +docker stop "$CONTAINER_NAME" || true docker run --rm -d --name "$CONTAINER_NAME" --restart unless-stopped -p "$HOST_PORT:4000" "$IMAGE_NAME"