Skip to content

BaoTa Panel Deployment ​

RuoYi AI documentation

This guide covers RuoYi AI. Report documentation problems through an issue.

Deploy the backend ​

  1. Use the Maven tool window in IntelliJ IDEA to package the backend as a jar.

Package the backend with Maven

  1. Create a server directory and upload the jar.

Upload the backend jar

  1. Add a Java project in BaoTa Panel.

Add the Java application

  1. Start the application.

Start the backend

Deploy the admin app ​

  1. Build with pnpm run build:antd.

Build the admin app

  1. Upload the generated dist directory to the server.

Upload the admin build output

  1. Add a website pointing to the uploaded build directory.

Create the admin website

  1. Configure Nginx:
yaml

    location /prod-api/{
        proxy_pass http://127.0.0.1:6039/;
        # 避免出现反代https域名出现502错误
        proxy_ssl_server_name on;
        # 设置原始的Host头信息
        proxy_set_header Host $http_host;
    }

    # 解决刷新404问题
    #vue-router配置
    location / {
        try_files $uri $uri/ @router;
        index index.html;
    }
    location @router {
        rewrite ^.*$ /index.html last;
    }

Deploy the user app ​

  1. Build with npm run build.

Build the user app

  1. Upload the generated dist directory.

Upload the user build output

  1. Add a website for the user app.

Create the user website

  1. Configure Nginx:
yaml
    location /api/{
        proxy_pass http://127.0.0.1:6039/;
        # 避免出现反代https域名出现502错误
        proxy_ssl_server_name on;
        # 关闭缓存实现打字机效果
        proxy_buffering off;
        # 设置原始的Host头信息
        proxy_set_header Host $http_host;
    }

Configure firewall rules ​

Allow the application ports required by your deployment in the panel and server firewall.

Server firewall configuration

Configure Tencent Cloud object storage ​

  1. In the Tencent Cloud console, open Object Storage and create a bucket.

Create an object-storage bucket

  1. Configure the bucket information.

Bucket settings

Additional bucket configuration

Bucket access configuration

  1. Obtain the API credentials.

Object-storage API credentials

  1. Enter the storage credentials in the admin app.

Admin storage configuration

  1. Enable the configuration.

Enable object storage

  1. Upload a file to verify the configuration.

Verify a file upload

Configure email ​

  1. Obtain a mailbox authorization code. This example uses a 163 mailbox.

Mailbox authorization settings

  1. Enable POP3/SMTP, complete the provider's verification, and retain the generated authorization code.

Enable SMTP and obtain the authorization code

  1. Configure the mailbox in the application.

Application email configuration

Install Weaviate ​

  1. Upload the Weaviate Compose YAML to the server. The screenshots show the older script/docker/weaviate layout; use the matching file from your checked-out version. For the current Compose setup, see Docker Deployment.

Upload the Weaviate Compose file

  1. From the file's directory, run docker compose up -d with Compose V2. Older installations may use docker-compose up -d.
  2. If pulling images times out, check Docker's network and proxy configuration.

Docker proxy configuration

java
{
  "registry-mirrors": [
    "https://mirror.aliyuncs.com",
    "https://docker.registry.cyou",
    "https://docker-cf.registry.cyou",
    "https://dockercf.jsdelivr.fyi",
    "https://docker.jsdelivr.fyi",
    "https://dockertest.jsdelivr.fyi",
    "https://mirror.baidubce.com",
    "https://docker.m.daocloud.io",
    "https://docker.mirrors.ustc.edu.cn",
    "https://mirror.iscas.ac.cn",
    "https://docker.nju.edu.cn",
    "https://docker.rainbond.cc",
    "https://docker.mirrors.sjtug.sjtu.edu.cn",
    "https://b9pmyelo.mirror.aliyuncs.com",
    "https://do.nark.eu.org",
    "https://dc.j8.work",
    "https://docker.m.daocloud.io",
    "https://dockerproxy.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://docker.nju.edu.cn",
    "https://noohub.ru",
    "https://huecker.io",
    "https://dockerhub.timeweb.cloud",
    "https://registry.dockermirror.com"
  ]
}