当前位置:网站首页>记录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上自己搭建一下试试看~
边栏推荐
- Pyechats 1.19 generate a web version of Baidu map
- Here comes the chicken soup! Keep this quick guide for data analysts
- How to make an RPM file
- 设置滚动条默认样式 谷歌浏览器
- Database batch insert data
- leetcode存在重复元素go实现
- Gee series: unit 8 time series analysis in Google Earth engine [time series]
- Fabric.js 激活输入框
- 青训营--数据库实操项目
- 2022 Alibaba global mathematics competition, question 4, huhushengwei (blind box problem, truck problem) solution ideas
猜你喜欢
操作符详解
LeetCode 241. 为运算表达式设计优先级(分治/记忆化递归/动态规划)
Fabric.js 右键菜单
Fabric.js IText 上标和下标
运维工作的“本手、妙手、俗手”
青训营--数据库实操项目
Gee series: Unit 2 explore datasets
Dark horse notes -- Set Series Collection
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
Gee series: unit 6 building various remote sensing indexes in Google Earth engine
随机推荐
Fabric. JS 3 APIs to set canvas width and height
黑馬筆記---Set系列集合
js中的Map(含leetcode例题)
Map in JS (including leetcode examples)
Gee: create a new feature and set corresponding attributes
Essence and physical meaning of convolution (deep and brief understanding)
Fabric. JS activation input box
Global and Chinese market of insulin pens 2022-2028: Research Report on technology, participants, trends, market size and share
LeetCode 241. Design priorities for operational expressions (divide and conquer / mnemonic recursion / dynamic programming)
Fabric.js 基础笔刷
Set the default style of scroll bar Google browser
LS1046nfs挂载文件系统
Operator details
6.网络-基础
Express logistics quick query method, set the unsigned doc No. to refresh and query automatically
Gee series: unit 10 creating a graphical user interface using Google Earth engine [GUI development]
Record my pytorch installation process and errors
数据库批量插入数据
在{{}}中拼接字符
Fabric.js 激活输入框