国网络环境的优化
如果你的云服务器在中国大陆,那你在执行 ./discourse-setup 或者 ./launcher rebuild app 的过程中很可能遇到一些网络问题。Discourse已经帮你写好了除了docker以外的镜像服务,只需要在你的 containers/app.yml 中的这里添加一行:
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.china.template.yml" # 添加这一行,配置npm, rubygems等包管理器的镜像
即可解决。