gitlink-glcc/README.md

36 lines
953 B
Markdown
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.

#### 部署项目
* 创建上传文件目录并添加写权限
```bash
sudo mkdir /path/to/file #此处为存放上传文件的目录
```
* 将目录放到配置文件
```smartyconfig
## 文件相关
FILES:
BASEPATHFILE: /path/to/file
```
* 将jar包和配置文件上传到服务器在application.yml中配置数据库连接信息
* 执行数据库初始化脚本 (sql/中)
* 将jar包上传到服务器并在服务上执行以下命令启动服务
```bash
nohup java -jar -Dserver.port=8081 share-api-1.0.0.jar --spring.config.location=application.yml &
```
#### 更新前端资源方式
在后端项目中
```bash
git remote add static https://gitlink.org.cn/wanjia9506/java_backend_react_build.git
```
在后端项目根目录,执行
```bash
git subtree pull --prefix=share-api/src/main/resources/static/admin static glcc --squash
```
前端build资源仓库
https://www.gitlink.org.cn/wanjia9506/java_backend_react_build/tree/glcc