美文网首页
sentry问题

sentry问题

作者: 滚石_c2a6 | 来源:发表于2018-06-15 19:44 被阅读201次

    1.sentry-cli一直安装不成功
    windows系统会报network error,webpack sentry plugin也安装不成功。
    切换到linux系统运行下面命令就可以了
    curl -sL https://sentry.io/get-cli/ | bash
    参考:https://github.com/getsentry/sentry-cli

    2.sentry-cli login 输入token报错
    xdg-open: no method available for opening 'https://sentry.io/api/'
    官方文档的说明:
    By default sentry-cli will connect to sentry.io but for on-premise you can also sign in elsewhere:
    $ sentry-cli --url http://172.31.1.22:8081/ login
    就不会报错
    Valid token for user xjinza@hotmail.com
    Stored token in /root/.sentryclirc
    输入vi .sentryclirc,可以看到.sentryclirc的配置信息。

    企业微信截图_20180615194250.png

    3.@sentry/webpack-plugin 报../dist 文件不存在
    new SentryPlugin({
    release: process.env.RELEASE,
    include: '../dist',
    ignore: ['node_modules', 'webpack.config.js']
    })
    include路径是相对于当前命令所在的目录,而不是webpack.conf.js所在的目录

    相关文章

      网友评论

          本文标题:sentry问题

          本文链接:https://www.haomeiwen.com/subject/gwomeftx.html