docker-compose run --rm web upgrade Would you like to create a user account now? [Y/n]: y Email: anjia0532@gmail.com Password: Repeat for confirmation: Should this user be a superuser? [y/N]: y ## 直到输出 Migrated: - sentry - sentry.nodestore - sentry.search - social_auth - sentry.tagstore - sentry_plugins.hipchat_ac - sentry_plugins.jira_ac Creating missing DSNs Correcting Group.num_comments counter ## 并退出
配置 Sentry
配置 vue
本文以 iview-admin 为例
git clone https://gitee.com/anjia/iview-admin.git cd iview-admin
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from"vue"; import App from"./App"; import router from"./router"; import store from"./store"; import iView from"iview"; import i18n from"@/locale"; import config from"@/config"; import importDirective from"@/directive"; import { directive as clickOutside } from"v-click-outside-x"; import installPlugin from"@/plugin"; import"./index.less"; import"@/assets/icons/iconfont.css"; import TreeTable from"tree-table-vue"; import VOrgTree from"v-org-tree"; import"v-org-tree/dist/v-org-tree.css"; import * as Sentry from"@sentry/browser"; import * as Integrations from"@sentry/integrations"; import VueMatomo from"vue-matomo";
// 实际打包时应该不引入mock /* eslint-disable */ if (process.env.NODE_ENV !== "production") require("@/mock");
Sentry.init({ dsn: "https://xxx@xxx.xxx.com/xxx", integrations: [ new Integrations.Vue({ Vue, attachProps: true, }), ], }); Vue.use(VueMatomo, { // Configure your matomo server and site by providing host: "//xxxx.xxxx.com/", siteId: xx,
// Changes the default .js and .php endpoint's filename // Default: 'piwik' trackerFileName: "matomo.js",
// Enables automatically registering pageviews on the router router: router,
// Enables link tracking on regular links. Note that this won't // work for routing links (ie. internal Vue router links) // Default: true enableLinkTracking: true,
// Require consent before sending tracking information to matomo // Default: false requireConsent: false,
// Whether to track the initial page view // Default: true trackInitialView: true,
// Whether or not to log debug information // Default: false debug: false, });
评论