作者: 为少 2021-08-31 05:01:46
云计算 我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。
10多年的商城网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。全网整合营销推广的优势是能够根据用户设备显示端的尺寸不同,自动调整商城建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联从事“商城网站设计”,“商城网站推广”以来,每个客户项目都认真落实执行。
本文转载自微信公众号「黑客下午茶」,作者为少。转载本文请联系黑客下午茶公众号。
我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。
默认情况下,该命令在 /work 目录中运行。挂载相关的你的项目文件夹并在那里构建输出以允许 sentry-cli 扫描资源:
- # 拉取镜像
- docker pull getsentry/sentry-cli
- # 执行命令
- docker run --rm -v $(pwd):/work getsentry/sentry-cli --help
- # sentry-cli 1.68.0
- # Command line utility for Sentry.
- # This tool helps you manage remote resources on a Sentry server like
- # sourcemaps, debug symbols or releases. Use `--help` on the subcommands
- # to learn more about them.
- # USAGE:
- # sentry-cli
- # OPTIONS:
- # --api-key
- # The given Sentry API key.
- # --auth-token
- # Use the given Sentry auth token.
- # -h, --help
- # Print this help message.
- # --log-level
- # Set the log output verbosity. [possible values: trace, debug, info, warn, error]
- # --url
- # Fully qualified URL to the Sentry server.
- # [defaults to https://sentry.io/]
- # -V, --version
- # Print version information.
- # SUBCOMMANDS:
- # bash-hook Prints out a bash script that does error handling.
- # difutil Locate or analyze debug information files.
- # help Prints this message or the help of the given subcommand(s)
- # info Print information about the Sentry server.
- # issues Manage issues in Sentry.
- # login Authenticate with the Sentry server.
- # projects Manage projects on Sentry.
- # react-native Upload build artifacts for react-native projects.
- # releases Manage releases on Sentry.
- # repos Manage repositories on Sentry.
- # send-event Send a manual event to Sentry.
- # upload-dif Upload debugging information files.
- # upload-proguard Upload ProGuard mapping files to a project.
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
- [auth]
- token=your-auth-token
- [defaults]
- org=sentry
- project=react-sentry-demo
- url=https://x.xxx.com
进入容器内
创建一个新版本:
- docker run --rm -it -v $(pwd):/work getsentry/sentry-cli /bin/sh
- sentry-cli releases new 1.0.0
https://docs.sentry.io/product/cli/
名称栏目:1分钟快速使用Docker上手新版Sentry-CLI-创建一个版本
网页网址:http://www.mswzjz.cn/qtweb/news47/47747.html
攀枝花网站建设、攀枝花网站运维推广公司-贝锐智能,是专注品牌与效果的网络营销公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 贝锐智能