Skip to content

Commit 3502ee9

Browse files
committed
🐛 修复前端init脚本,避免异常中断
1 parent 1255b7f commit 3502ee9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

web/build-source.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,6 @@ function run_config() {
9090
echo '['"${configs:2}"']' >"${CONF_PATH}"/configs.json
9191
}
9292

93+
yarn
9394
run
9495
run_config

web/tca-deploy-source/scripts/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export NGINX_LOG_PATH=${NGINX_LOG_PATH:-"/var/log/nginx"}
6565
function start_nginx() {
6666
LOG_INFO "启动 nginx ..."
6767
# wc -l 行数计算。当nginx无进程时,启动nginx,否则reload nginx
68-
nginx_is_start=$(ps -C nginx --no-header | wc -l)
68+
nginx_is_start=$(ps -C nginx --no-header | wc -l || true)
6969
if [ "$nginx_is_start" -eq 0 ]; then
7070
nginx -t || error_exit "nginx test failed"
7171
if [ "$IS_DOCKER" == "TRUE" ]; then

0 commit comments

Comments
 (0)