You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 weeks ago | |
---|---|---|
client | 2 months ago | |
script | 1 month ago | |
server | 2 months ago | |
.editorconfig | 2 months ago | |
.gitignore | 1 month ago | |
.npmrc | 2 months ago | |
Dockerfile | 2 months ago | |
README.md | 1 month ago | |
config.cjs | 2 months ago | |
index.html | 2 months ago | |
jenkinsfile | 2 months ago | |
package-lock.json | 2 months ago | |
package.json | 2 weeks ago |
README.md
无源标靶上位机
开发注意事项
- 请确保在开发环境中,
server/tcpProxy/index.js
文件中的TCP_HOST
设置为下位机的实际 IP 地址 - 提交代码前,请将
TCP_HOST
设置回去 - 确保在生产环境中,
client\src\sections\wuyuanbiaoba\components\CameraView.jsx
,摄像头流的 streamUrl 指向正确的地址 - 提交代码前,请将
streamUrl
设置回去
部署说明
部署步骤
特别注意 确保下位机已经安装了 nodejs 环境,并且版本在 20 以上(推荐v20.19.3),注意,nodejs 环境必须是 root 用户可用的,服务自启动需要 systemd 的操作权限。
- 从项目的 release 页面下载最新的打包文件,如
wuyuanbiaoba-web-x.x.x.tar.gz
- 上传到服务器的临时目录,如
~/deploy/
(这里最好建立一个新的目录存放压缩文件) - 进入该目录,解压文件
tar -xzf wuyuanbiaoba-web-x.x.x.tar.gz
- 进入解压后的目录
cd wuyuanbiaoba-web-x.x.x
- 运行部署脚本
sudo ./deploy.sh
- 脚本会自动停止现有服务,备份旧版本,安装新版本,并启动服务
- 部署完成后,可以通过
sudo systemctl status wuyuanbiaoba-web.service
查看服务状态 - 查看日志
journalctl -u wuyuanbiaoba-web.service -f