Deploying the RuoYi Application Before SQL Modification
- Package the code.
- In VS Code, press Ctrl+` to open the console.

- In the console, run mvn clean install -U to clear and update the dependencies.

- In the console, run mvn package to build the project and generate a WAR file.

The WAR package path is ./ruoyi-admin/target/ruoyi-admin.war.

- In VS Code, press Ctrl+` to open the console.
- Connect to the tool through SSH.
- Start Nginx.
- Open the nginx.conf file.
1vim /home/nginx/conf/nginx.conf
- Change the reverse proxy port from 8080 to 8088 and save the file.

- Start Nginx.
1 2
cd /home/nginx/sbin ./nginx
- Open the nginx.conf file.
- Start TongWeb.
- Set the environment variables.
1 2
echo 'export JAVA_HOME=/home/bisheng-jdk1.8.0_412' >> /etc/profile echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile
- Load the environment variables.
1source /etc/profile
- Start TongWeb.
1sh /home/TongWeb7.0.4.9_M3_Enterprise_Linux/bin/startserver.sh
- In the address box of the browser, enter http://devkit01_IP_address:9060/console/ to go to the TongWeb management page.
Enter the user name thanos and the default password thanos123.com.

- Click Modify. After the password is reset, log in again.

- Log in to TongWeb again and click Applications.

- Undeploy the RuoYi application that has not been reconstructed.
- Click Deploy to deploy the reconstructed RuoYi application.

- Upload the built WAR package and click Start.

- Retain the default settings and click Next.

- Select server and click Next.

- Click Finish.

- After the deployment is complete, ruoyi-admin is displayed on the management page.

- Visit http://agent01_IP_address:80/ruoyi-admin to access RuoYi. The default user name and password are admin and admin123, respectively.

- Set the environment variables.
Parent topic: Application Migration
