客户端可通过multipart/form-data
一次POST JSON数据和任意个(最多10个)附件和任意个(最多10个)日志文件到服务器。
curl -X POST http://xxx.xxx.xx.xxx:3000/crashreport
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F 'metadata={"anykey": "anyvalue"}' \
-F '[email protected]' \
-F '[email protected]' \
-F '[email protected]' \
-F '[email protected]'
- 全局安装
nodemon
,使nodemon
命令可以全局使用,npm install nodemon -g
- 使用
nodemon
命令代替node
启动脚本。