diff --git a/README.md b/README.md index 4385a5ed7..851f53680 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,12 @@ > 欢迎接入更多应用,参考 [Terminal代码](https://github.com/zhayujie/chatgpt-on-wechat/blob/master/channel/terminal/terminal_channel.py)实现接收和发送消息逻辑即可接入。 同时欢迎增加新的插件,参考 [插件说明文档](https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins)。 **一键部署:** - -[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/qApznZ?referralCode=RC3znh) +- 个人微信 + + [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/qApznZ?referralCode=RC3znh) +- 企业微信应用号 + + [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/-FHS--?referralCode=RC3znh) # 演示 diff --git a/docker/Dockerfile.debian b/docker/Dockerfile.debian index 798642d06..302fc4fae 100644 --- a/docker/Dockerfile.debian +++ b/docker/Dockerfile.debian @@ -31,9 +31,10 @@ WORKDIR ${BUILD_PREFIX} ADD ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh \ + && mkdir -p /home/noroot \ && groupadd -r noroot \ && useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \ - && chown -R noroot:noroot ${BUILD_PREFIX} + && chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib USER noroot diff --git a/docker/Dockerfile.latest b/docker/Dockerfile.latest index 7f2d6aedc..d0a2475ba 100644 --- a/docker/Dockerfile.latest +++ b/docker/Dockerfile.latest @@ -25,10 +25,11 @@ WORKDIR ${BUILD_PREFIX} ADD docker/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh \ + && mkdir -p /home/noroot \ && groupadd -r noroot \ && useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \ - && chown -R noroot:noroot ${BUILD_PREFIX} + && chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib USER noroot -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/plugins/plugin_manager.py b/plugins/plugin_manager.py index d2ee75e39..d8ad2c3e7 100644 --- a/plugins/plugin_manager.py +++ b/plugins/plugin_manager.py @@ -123,7 +123,7 @@ def activate_plugins(self): # 生成新开启的插件实例 try: instance = plugincls() except Exception as e: - logger.error("Failed to init %s, diabled. %s" % (name, e)) + logger.exception("Failed to init %s, diabled. %s" % (name, e)) self.disable_plugin(name) failed_plugins.append(name) continue