刚在国内服务器安装了一下discourse 结果无法git
好不容易用gitee上的获取到文件,安装过程中仍然需要连接github,还是失败!
其实官方有给解决方案,但是其中的镜像源失效了。稍微修改一下即可在国内服务器上顺利安装。
首先获取项目文件,用下面的命令:
git clone https://gh.llkk.cc/https://github.com/discourse/discourse_docker.git /opt/1panel/apps/discourse
然后找到/discourse/templates目录下的web.china.template.yml 打开。找到第五行。
把https://mirror.ghproxy.com/替换为https://gh.llkk.cc/
其他不用改,保存!
然后打开/discourse/containers/app.yml在templates里增加一行
- "templates/web.china.template.yml"
app.yml文件的其他配置请参考本站的安装教程。
接着运行安装命令,就可以正常安装了!
cd /opt/1panel/apps/discourse
./launcher rebuild app
