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, });
该页面显示如何使用 StatefulSet 控制器去运行一个有状态的应用程序。此例是一主多从的 MySQL 集群。 请注意 这不是生产配置 。 重点是, MySQL 设置保留在不安全的默认值上,使重点放在 Kubernetes 中运行有状态应用程序的常规模式。 教程目标 使用 StatefulSet 控制器部署复制的 MySQL 拓扑。 发送 MySQL 客户端流量。 观察对宕机的抵抗力。 缩放 StatefulSet 的大小。 准备开始 Katacoda Play with Kubernetes 要获知版本信息,请输入 kubectl version . 您需要有一个带有默认 StorageClass 的动态持续卷供应程序,或者自己 静态的提供持久卷 来满足这里使用的 持久卷请求 。 This tutorial assumes you are familiar with PersistentVolumes and StatefulSets , as well as other core concepts like Pods , Services , and ConfigMaps . Some familiarity with MySQL helps, but this tutorial aims to present general patterns that should be useful for other systems. –> 你必须拥有一个 Kubernetes 的集群,同时你的 Kubernetes 集群必须带有 kubectl 命令行工具。 如果你还没有集群,你可以通过 Minikube 构建一 个你自己的集群,或者你可以使用下面任意一个 Kubernetes 工具构建: Katacoda Play with Kubernetes 要获知版本信息,请输入 kubectl version . 您需要有一个带有默认 StorageClass 的动态持续卷供应程序,或者自己 静态的提供持久卷 来满足这里使用的 持久卷请求 。 本教程假定您熟悉 PersistentVolumes 与 StatefulSets , 以及其他核心概念,例如 Pods , Services , 与 ConfigMaps . 熟悉 MySQL 会有所帮助,但是本教程...
评论