ruoyi-workflow/README.md
2026-04-15 09:11:05 +08:00

47 lines
1.3 KiB
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.

## 若依工作流
### 后端教程
* 执行数据库脚本在根目录下找到sql/mysql执行所有的脚本
* 修改application-dev.yaml或application-local.yaml中的mysql和redis配置信息
* 如果需要发布上线需要先打包在IDEA右侧属性面板找到yudao-Lifecycle/package, 点击package即可
* 使用script/shell/deploy.sh进行项目启动
### 前端教程
* 安装依赖 npm install
* 项目打包 npm run build:prod
* nginx
```shell
server {
server_name flow.jeecgruoyi.com
listen 80;
gzip on;
gzip_min_length 1k;
gzip_comp_level 9;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
location / {
root /home/yudao/dist-prod;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location ^~ /admin-api/ {
proxy_pass http://127.0.0.1:48080/admin-api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 10s;
proxy_read_timeout 60s;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
```