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, });
当redis被用作缓存时,有时我们希望了解key的大小分布,或者想知道哪些key占的空间比较大。本文提供了几种方法。 一. bigKeys 这是redis-cli自带的一个命令。对整个redis进行扫描,寻找较大的key。例: redis-cli -h b.redis -p 1959 --bigkeys 输出: # Scanning the entire keyspace to find biggest keys as well as # average sizes per key type. You can use -i 0.1 to sleep 0.1 sec # per 100 SCAN commands (not usually needed). [00.00%] Biggest hash found so far 's_9329222' with 3 fields [00.00%] Biggest string found so far 'url_http://mini.eastday.com/mobile/170722090206890.html?qid=sgllq&ch=east_sogou_push&pushid=13' with 8 bytes [00.00%] Biggest string found so far 'foo' with 40 bytes [00.00%] Biggest hash found so far 's_9329084' with 4 fields [00.23%] Biggest zset found so far 'region_hot_菏泽地' with 625 members [00.23%] Biggest zset found so far 'region_hot_葫芦岛' with 914 members [00.47%] Biggest string found so far 'top_notice_list' with 135193 bytes [00.73%] ...
评论