当前位置:网站首页>记录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上自己搭建一下试试看~
边栏推荐
- 数据的储存
- Collectors.groupingBy 排序
- Global and Chinese market of pressure gauges 2022-2028: Research Report on technology, participants, trends, market size and share
- Foreign trade marketing website system development function case making
- Fabric.js IText设置指定文字的颜色和背景色
- Global and Chinese market of insulin pens 2022-2028: Research Report on technology, participants, trends, market size and share
- Fabric.js 右键菜单
- Fasttext text text classification
- Fabric. JS three methods of changing pictures (including changing pictures in the group and caching)
- Fabric.js 精简JSON
猜你喜欢

Fabric.js IText 手动设置斜体

Pyechart1.19 national air quality exhibition

Gee series: Unit 1 Introduction to Google Earth engine

6. Network - Foundation

Gee series: unit 6 building various remote sensing indexes in Google Earth engine
![Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]](/img/7b/b9ef76cee8b32204331a9c3c21b5c2.jpg)
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]

Black Horse Notes - - set Series Collection

黑馬筆記---Set系列集合

Straighten elements (with transition animation)

Dark horse notes -- Set Series Collection
随机推荐
Installation du tutoriel MySQL 8.0.22 par centos8
Gee: create a new feature and set corresponding attributes
Principle and implementation of parallax effect
Fabric.js 基础笔刷
Fabric. JS gradient
4. Flask cooperates with a tag to link internal routes
Cubemx DMA notes
Get the details of the next largest number
Fabric. JS 3 APIs to set canvas width and height
7. Eleven state sets of TCP
Preparation for writing SAP ui5 applications using typescript
Fabric. JS background is not affected by viewport transformation
國產全中文-自動化測試軟件Apifox
Thread pool batch processing data
创新永不止步——nVisual网络可视化平台针对Excel导入的创新历程
LeetCode 241. 为运算表达式设计优先级(分治/记忆化递归/动态规划)
Dark horse notes -- map set system
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
Express logistics quick query method, set the unsigned doc No. to refresh and query automatically
el-cascader回显只选中不显示的问题