#!/bin/bash baseDir="/data/code/manage-platform" cd ${baseDir}/react-ui npm config set registry https://registry.npmmirror.com/ npm install --force if [ $? -ne 0 ]; then echo "Failed to install npm depend package" exit 1 fi npm run build if [ $? -ne 0 ]; then echo "Failed to build react-ui" exit 1 fi