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, });
ab(Apache benchmark)是一款常用的压力测试工具。 安装 sudo yum install httpd-tools 复制代码 命令参数 $ ab -h Usage: ab [options] [http[s]://]hostname[:port]/path Options are: -n requests Number of requests to perform -c concurrency [并发数 常用] Number of multiple requests to make -t timelimit [持续请求时间 常用]Seconds to max. wait for responses -b windowsize Size of TCP send/receive buffer, in bytes -p postfile File containing data to POST. Remember also to set -T -u putfile File containing data to PUT. Remember also to set -T -T content-type Content-type header for POSTing, eg. 'application/x-www-form-urlencoded' Default is 'text/plain' -v verbosity How much troubleshooting info to print -w Print out results in HTML tables -i Use HEAD instead of GET -x attributes String to insert as table attributes -y attributes String to insert as tr attributes -...
评论