当前位置:网站首页>记录sentry的踩坑之路
记录sentry的踩坑之路
2022-07-02 05:21:00 【只会写Bug的程序员】
准备工作(mac版):
- 安装docker
- 安装python3.9(最新版)
- 安装java(最新版,下载地址)否则会提示没有gosu命令,以及没有java环境
- 如果想要使用geoIp,则需要申请MaxMind,《传送门》,用来获取GeoIP.conf,这个插件是比较坑,可能是我不会用。

准备工作完成,通过github找到getsentry/self-hosted,clone下来
按照官方文档ReadMe.md,运行source ./install.sh,此时第一个坑,刚开始使用的sh ./install.sh,会有报错。具体是因为sh,bash,source对于sh文件的操作不太一致导致的,文章传送门
在install结束时,会提示创建admin账号,这个是你登陆的账号密码(然鹅,我在这一步卡住了,电脑无法正常输入,好几次都这样),本来我以为无望了,想去走一下注册流程,然后发现需要配置邮箱,然后在网上查了一下资源,得到了下面的操作命令
>>> vim sentry/config.yml
...
mail.host: 'smtp.xxx.xxx.cn'
mail.port: 587
mail.username: '[email protected]'
mail.password: 'xxxxxx'
mail.use-tls: true
mail.from: '[email protected]' # 同username
...
>>> docker-compose down
>>> docker-compose run --rm web upgrade # 注意这一步
>>> docker-compose up -d
在使用了第二个命令的时候,命令台出现了熟悉的提示,再次让我确认是否需要创建账号!这次没有再出现问题,可以正常创建了。
登陆进去后,创建一个react项目监控试试,在项目中加入官方代码,随便写个小错误,触发一下。
回到sentry界面,查看是否收集到错误
完美!初步可以使用了!
其实在服务端,有现成的docker镜像,在dockerhub上搜索sentry,也可以直接使用。我就是想在mac上自己搭建一下试试看~
边栏推荐
猜你喜欢
![Gee series: unit 7 remote sensing image classification using GEE [random forest classification]](/img/01/ba9441b7b1efaed85c464316740edb.jpg)
Gee series: unit 7 remote sensing image classification using GEE [random forest classification]

Fabric. JS gradient

kmp思想及模板代码

Fabric.js IText设置指定文字的颜色和背景色

2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas

Detailed explanation of Pointer use

Express logistics quick query method, set the unsigned doc No. to refresh and query automatically

Preparation for writing SAP ui5 applications using typescript

黑马笔记---Map集合体系

Fabric. JS iText superscript and subscript
随机推荐
函数栈帧的创建和销毁
Fabric.js 自由绘制矩形
Ubuntu 20.04 installing mysql8
Using QA band and bit mask in Google Earth engine
ERP management system development and design existing source code
Database batch insert data
创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced
Fabric.js 居中元素
Fabric.js 右键菜单
Here comes the chicken soup! Keep this quick guide for data analysts
6.网络-基础
Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
Briefly introduce chown command
Exercise notes 13 (effective letter ectopic words)
js中的Map(含leetcode例题)
Fabric.js 精简JSON
Nodejs (02) - built in module
Gee series: unit 6 building various remote sensing indexes in Google Earth engine
设置滚动条默认样式 谷歌浏览器