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.
|
|
3 weeks ago | |
|---|---|---|
| client | 4 weeks ago | |
| script | 3 months ago | |
| server | 4 weeks ago | |
| .editorconfig | 3 months ago | |
| .gitignore | 3 months ago | |
| .npmrc | 3 months ago | |
| Dockerfile | 3 months ago | |
| README.md | 3 months ago | |
| config.cjs | 3 months ago | |
| index.html | 3 months ago | |
| jenkinsfile | 3 months ago | |
| package-lock.json | 3 weeks ago | |
| package.json | 3 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