Git 版本管理、 Sourcetree GIT UI 管理
Nodejs 、Yarn
JDK1.8 java
Visual Studio Code 前端代码编辑器
Idea 社区版 Java 代码编辑器
Xshell 或 SecureCRT 等类似的软件
Winscp 等类似远程管理软件
Git 相关 https://www.runoob.com/git/git-basic-operations.html
Yarn 相关 https://yarn.bootcss.com/docs/cli/
Linux 相关 https://www.runoob.com/linux/linux-command-manual.html
使用 VSCode 打开项目
按住 ctrl+~ 打开命令窗口
ctrl+~
输入 git pull 下载最新代码 (此步骤可以使用工具)
git pull
代码拉取完毕之后, 执行 yarn build
yarn build
拷贝 dist 目录内容至测试机相关目录即可
使用 Idea 打开项目
选中 pom green 环境
找到 maven package 命令, 并点击
package
拷贝 target 下 jar 文件到测试机相关目录
target
测试机执行 shell $ cd to-the-path to-the-path 为 jar 包所在目录
$ cd to-the-path
to-the-path
测试机执行 shell $ ps -ef|grep xxx xxx 为 jar 包名称
$ ps -ef|grep xxx
执行 shell $ kill -9 yyy yyy 为步骤 5 执行结果出来的 pid
$ kill -9 yyy
执行 shell $ nohup java -jar zzz >> server.log & zzz 为 新版本 jar 文件
$ nohup java -jar zzz >> server.log &
删除一个分支是永久性的,无法撤消。
准备软件
Git 版本管理、 Sourcetree GIT UI 管理
Nodejs 、Yarn
JDK1.8 java
Visual Studio Code 前端代码编辑器
Idea 社区版 Java 代码编辑器
Xshell 或 SecureCRT 等类似的软件
Winscp 等类似远程管理软件
常用命令
Git 相关 https://www.runoob.com/git/git-basic-operations.html
Yarn 相关 https://yarn.bootcss.com/docs/cli/
Linux 相关 https://www.runoob.com/linux/linux-command-manual.html
执行过程
前端打包
使用 VSCode 打开项目
按住
ctrl+~
打开命令窗口输入
git pull
下载最新代码 (此步骤可以使用工具)代码拉取完毕之后, 执行
yarn build
拷贝 dist 目录内容至测试机相关目录即可
服务端打包
使用 Idea 打开项目
选中 pom green 环境
找到 maven
package
命令, 并点击拷贝
target
下 jar 文件到测试机相关目录测试机执行 shell
$ cd to-the-path
to-the-path
为 jar 包所在目录测试机执行 shell
$ ps -ef|grep xxx
xxx 为 jar 包名称执行 shell
$ kill -9 yyy
yyy 为步骤 5 执行结果出来的 pid执行 shell
$ nohup java -jar zzz >> server.log &
zzz 为 新版本 jar 文件