当前位置:网站首页>记录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上自己搭建一下试试看~
边栏推荐
- Global and Chinese markets of semiconductor laser therapeutics 2022-2028: Research Report on technology, participants, trends, market size and share
- Gee series: unit 8 time series analysis in Google Earth engine [time series]
- Storage of data
- 6. Network - Foundation
- el-cascader回显只选中不显示的问题
- leetcode两数相加go实现
- Fabric. JS background is not affected by viewport transformation
- There are duplicate elements in leetcode. Go implementation
- Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster
- 7.1模擬賽總結
猜你喜欢

Fabric. JS iText sets the color and background color of the specified text

Dark horse notes -- map set system

About PROFIBUS: communication backbone network of production plant
![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]

LS1046nfs挂载文件系统

Cubemx DMA notes

6.网络-基础

MySQL foundation --- query (learn MySQL foundation in 1 day)

Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster

【pyinstaller】_get_sysconfigdata_name() missing 1 required positional argument: ‘check_exists‘
随机推荐
Map in JS (including leetcode examples)
Disable access to external entities in XML parsing
Latest: the list of universities and disciplines for the second round of "double first-class" construction was announced
Cubemx DMA notes
Fabric. JS compact JSON
摆正元素(带过渡动画)
Fabric.js 基础笔刷
Disable access to external entities in XML parsing
Splice characters in {{}}
Global and Chinese market of impact roll 2022-2028: Research Report on technology, participants, trends, market size and share
国产全中文-自动化测试软件Apifox
青训营--数据库实操项目
Gee: find the spatial distribution and corresponding time of the "greenest" in the Yellow River Basin in 2020 [pixel by pixel analysis]
Gee series: unit 8 time series analysis in Google Earth engine [time series]
Installation du tutoriel MySQL 8.0.22 par centos8
黑馬筆記---Set系列集合
金融门户相关信息
js中的Map(含leetcode例题)
数据库批量插入数据
Gee: explore the change of water area in the North Canal basin over the past 30 years [year by year]