快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

1分钟快速使用Docker上手新版Sentry-CLI-创建一个版本

我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。

创新互联服务项目包括肇州网站建设、肇州网站制作、肇州网页制作以及肇州网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,肇州网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到肇州省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

安装 Docker 镜像

默认情况下,该命令在 /work 目录中运行。挂载相关的你的项目文件夹并在那里构建输出以允许 sentry-cli 扫描资源:

#拉取镜像dockerpullgetsentry/sentry-cli#执行命令dockerrun--rm-v$(pwd):/workgetsentry/sentry-cli--help#sentry-cli1.68.0#CommandlineutilityforSentry.#ThistoolhelpsyoumanageremoteresourcesonaSentryserverlike#sourcemaps,debugsymbolsorreleases.Use`--help`onthesubcommands#tolearnmoreaboutthem.#USAGE:#sentry-cli#OPTIONS:#--api-key#ThegivenSentryAPIkey.#--auth-token#UsethegivenSentryauthtoken.#-h,--help#Printthishelpmessage.#--log-level#Setthelogoutputverbosity.[possiblevalues:trace,debug,info,warn,error]#--url#FullyqualifiedURLtotheSentryserver.#[defaultstohttps://sentry.io/]#-V,--version#Printversioninformation.#SUBCOMMANDS:#bash-hookPrintsoutabashscriptthatdoeserrorhandling.#difutilLocateoranalyzedebuginformationfiles.#helpPrintsthismessageorthehelpofthegivensubcommand(s)#infoPrintinformationabouttheSentryserver.#issuesManageissuesinSentry.#loginAuthenticatewiththeSentryserver.#projectsManageprojectsonSentry.#react-nativeUploadbuildartifactsforreact-nativeprojects.#releasesManagereleasesonSentry.#reposManagerepositoriesonSentry.#send-eventSendamanualeventtoSentry.#upload-difUploaddebugginginformationfiles.#upload-proguardUploadProGuardmappingfilestoaproject. 配置和认证 配置文件

sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。

.sentryclirc

[auth]token=your-auth-token[defaults]org=sentryproject=react-sentry-demourl=https://x.xxx.com

进入容器内

创建一个新版本:

dockerrun--rm-it-v$(pwd):/workgetsentry/sentry-cli/bin/shsentry-clireleasesnew1.0.0 Refs

https://docs.sentry.io/product/cli/


分享文章:1分钟快速使用Docker上手新版Sentry-CLI-创建一个版本
网页链接:http://6mz.cn/article/cjsgdh.html

其他资讯