当前位置:网站首页>记录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上自己搭建一下试试看~
边栏推荐
- Fabric.js IText 上标和下标
- Dark horse notes -- map set system
- Fabric.js 右键菜单
- Ubuntu 20.04 installing mysql8
- Gee: remote sensing image composite and mosaic
- No logic is executed after the El form is validated successfully
- [quick view opencv] familiar with CV matrix operation with image splicing examples (3)
- 黑馬筆記---Set系列集合
- Storage of data
- Mysql基础---查询(1天学会mysql基础)
猜你喜欢
Fabric. JS iText set italics manually
Fabric. JS right click menu
The El cascader echo only selects the questions that are not displayed
Gee dataset: chirps pentad high resolution global grid rainfall dataset
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
el form 表单validate成功后没有执行逻辑
Collectors. Groupingby sort
"Original, excellent and vulgar" in operation and maintenance work
LeetCode 1175. 质数排列(质数判断+组合数学)
Fabric.js IText设置指定文字的颜色和背景色
随机推荐
Innovation never stops -- the innovation process of nvisual network visualization platform for Excel import
Find the subscript with and as the target from the array
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
Gee: use of common mask functions in remote sensing image processing [updatemask]
Fabric.js 精简JSON
Implementation of leetcode two number addition go
视差特效的原理和实现方法
Fabric. JS compact JSON
paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
Fabric. JS round brush
Gee series: Unit 1 Introduction to Google Earth engine
php/js cookie共享跨域的问题
Fabric.js 圆形笔刷
Feign realizes file uploading and downloading
Reflection of the soul of the frame (important knowledge)
6. Network - Foundation
[opencv] image binarization
el form 表单validate成功后没有执行逻辑
Global and Chinese market of cell culture freezers 2022-2028: Research Report on technology, participants, trends, market size and share
Pyflink writes MySQL examples with JDBC