Files
litemall/deploy/util/lazy.sh
lieil 0aea905dda 优化一键编译部署脚本
安装阿里cnpm镜像工具、确保首次编译node项目依赖环境
2018-04-03 09:35:03 +08:00

25 lines
498 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 本脚本的作用是
# 1. 编译打包Spring Boot应用
# 2. 编译litemall-adminy应用
# 3. 调用upload.sh上传
# 注意运行脚本必须是在litemall主目录下,类似如下命令
# cd litemall
# ./deploy/util/lazy.sh
echo $PWD
mvn clean
mvn package
cd ./litemall-admin
# 安装阿里node镜像工具
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 安装node项目依赖环境
cnpm install
cnpm run build:prod
cd ..
echo $PWD
./deploy/util/upload.sh