Release:Frontend Release Process
I. Frontend Deployment
The frontend is essentially a VUE project, and the corresponding deployment method is similar to that of a general frontend project written in VUE. Deployment steps:
- Packaging: Execute the packaging command in the frontend boot project (e.g., ss-boot):
pnpm run build
- Upload the packaged dist package to the server and start it with nginx.
- When starting with nginx, the nginx configuration is as follows:
server {
# Modify according to actual details
listen 8090;
# Modify according to actual details
server_name 127.0.0.1;
location / {
# Modify according to actual details (path corresponding to frontend dist file)
root /Users/wangxian/nginx/html/mis/v3/dist;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /pamirs {
# Modify according to actual details (backend interface address)
proxy_pass http://127.0.0.1:8191;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
- After modifying and saving the configuration, execute startup or restart to take effect.
II. Frontend Upgrade
- Obtain the corresponding version information; get the frontend version information from the
frontend version package information
in the update log. - Upgrade steps: Modify the version number of the
oinone
dependency inpackage.json
and reinstall it.- Modify the version of packages prefixed with
@kunlun
inpackage.json
ofss-admin-widget
,ss-boot
,ss-oinone
,ss-project
(or more custom extended projects) to the version to be upgraded.
- Modify the version of packages prefixed with
- Finally, in the outermost package
ss-front-modules
, executepnpm run clean
to clear dependencies, andpnpm install
to reinstall dependencies.