20 lines
248 B
Bash
Executable File
20 lines
248 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 执行 yarn build
|
|
yarn build
|
|
|
|
# 检查执行结果
|
|
if [ $? -ne 0 ]; then
|
|
echo "yarn build 失败"
|
|
exit 1
|
|
fi
|
|
|
|
# 执行 rm -rf ../dist
|
|
rm -rf ../dist
|
|
|
|
# 执行 mv dist ../
|
|
mv dist ../
|
|
|
|
docker restart book_nginx
|
|
|
|
echo "build 完成" |