当前位置:   article > 正文

rui-chatgpt-on-wechat 项目部署运行_wechaty gateway

wechaty gateway

1、安装环境

yum install docker
yum install docker-compose
systemctl start docker
docker pull wechaty/wechaty:0.65
  • 1
  • 2
  • 3
  • 4

2、git免密登录

ssh-keygen -t rsa
cat /root/.ssh/id_rsa.pub

git clone git@github.com:liuguangrui123/rui-chatgpt-on-wechat.git
  • 1
  • 2
  • 3
  • 4

3、设置wechaty 环境变量

export WECHATY_PUPPET=wechaty-puppet-padlocal
export WECHATY_PUPPET_PADLOCAL_TOKEN=puppet_padlocal_840ae6b5d0bb49918991eeebd1e47912
export WECHATY_TOKEN=da4d091e-833c-7ddc-ef62-868f772a1438
export WECHATY_PUPPET_SERVER_PORT=9001
export WECHATY_LOG=verbose
  • 1
  • 2
  • 3
  • 4
  • 5

4、运行wechaty

docker run -it \
--name wechaty_gateway \
--rm \
-e WECHATY_LOG \
-e WECHATY_PUPPET \
-e WECHATY_PUPPET_PADLOCAL_TOKEN \
-e WECHATY_PUPPET_SERVER_PORT \
-e WECHATY_TOKEN \
-p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" \
wechaty/wechaty:0.65
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

5、运行项目

rm -rf rui-chatgpt-on-wechat.git
git clone git@github.com:liuguangrui123/rui-chatgpt-on-wechat.git
cd rui-chatgpt-on-wechat/docker
chmod 777 entrypoint.sh build.alpine.sh docker-compose.yaml 
./build.alpine.sh 
docker-compose up
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/71329
推荐阅读
相关标签
  

闽ICP备14008679号