7
我在centos上安装了线上的halo,然后想在本地做一套一样的,是不是保证 .halo内容和mysql数据一样就可以保证一样 ?本地启动报错 /C:\Users\admin.halo2\plugins/\root.halo2\plugins\PluginSearchWidget-1.0.0.jar 是因为centos上的路径存在mysql中了吗
我在centos上安装了线上的halo,然后想在本地做一套一样的,是不是保证 .halo内容和mysql数据一样就可以保证一样 ?本地启动报错 /C:\Users\admin.halo2\plugins/\root.halo2\plugins\PluginSearchWidget-1.0.0.jar 是因为centos上的路径存在mysql中了吗
需要详细描述一下完整的操作过程,我们才能知道哪一步出了问题。比如 Docker 命令或者 DockerCompose 配置文件,Halo 数据在本地的目录,以及 Docker 所挂载的目录等。
我有两套halo环境如何保证数据一致, 线上是docker-compose + mysql部署可以成功访问 本地IDEA启动halo + mysq 如何同步本地和线上的halo内容,用同一个mysql 然后复制线上的 .halo文件就可以是吗
保证这个文件里的内容一样就行吧
然后本地halo报这个错
请问这个配置内容是从哪里读的 是mysql还是 .halo里
目测是因为 Linux 和 Windows 文件路径差异导致无法正常找到插件。
是因为用的都是都一个mysql的原因吗
是不是应该配置两个mysql
主要是插件资源的状态中保存了插件绝对地址,请看插件详情:
{
"1": {
"spec": {
"displayName": "ByteMD",
"version": "1.1.1",
"author": {
"name": "Halo OSS Team",
"website": "https://github.com/halo-dev"
},
"logo": "logo.png",
"pluginDependencies": {},
"homepage": "https://github.com/ruibaby/plugin-bytemd",
"description": "对 ByteMD 的集成,让文章支持 Markdown 编辑",
"license": [
{
"name": "MIT"
}
],
"requires": ">=2.1.0",
"enabled": true
},
"status": {
"phase": "STARTED",
"conditions": [
{
"type": "STARTED",
"status": "TRUE",
"lastTransitionTime": "2023-06-15T02:28:36.430486Z",
"message": "Started successfully",
"reason": "STARTED"
},
{
"type": "FAILED",
"status": "FALSE",
"lastTransitionTime": "2023-06-14T16:08:27.130083Z",
"message": "Plugin [PluginBytemd] state transition from [STOPPED] to [STARTED] failed",
"reason": "UnexpectedState"
},
{
"type": "STOPPED",
"status": "TRUE",
"lastTransitionTime": "2023-06-14T16:08:16.514460Z",
"message": "Stopped successfully",
"reason": "STOPPED"
},
{
"type": "FAILED",
"status": "FALSE",
"lastTransitionTime": "2023-06-14T16:03:45.746210Z",
"message": "Plugin '/Users/johnniang/halo2-dev/plugins/PluginBytemd-1.1.1.jar' already loaded with id 'PluginBytemd'",
"reason": "UnexpectedState"
}
],
"lastStartTime": "2023-06-27T07:46:31.915652Z",
"entry": "/plugins/PluginBytemd/assets/console/main.js?version=1.1.1",
"stylesheet": "/plugins/PluginBytemd/assets/console/style.css?version=1.1.1",
"logo": "/plugins/PluginBytemd/assets/logo.png?version=1.1.1",
"loadLocation": "file:///Users/johnniang/halo2-dev/plugins/PluginBytemd-1.1.1.jar"
},
"apiVersion": "plugin.halo.run/v1alpha1",
"kind": "Plugin",
"metadata": {
"finalizers": [
"plugin-protection"
],
"name": "PluginBytemd",
"annotations": {
"plugin.halo.run/plugin-path": "/Users/johnniang/halo2-dev/plugins/PluginBytemd-1.1.1.jar"
},
"version": 316,
"creationTimestamp": "2023-06-14T09:33:34.595647Z"
}
}
}