Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: Fix Discourse installation support in China (#793)
This commit does 2 things: 1. Added a new yarn hook to replace the npm mirror before `yarn install`. 2. Modified `web.china.template.yml` to add more mirror sources. Below is an explanation of these modifications: - The GitHub proxy added in `web.china.template.yml` has existed in China for many years, and its repository https://github.com/hunshcn/gh-proxy has 6k+ stars, which can ensure its security and stability. - The NPM mirror site added in `web.china.template.yml` is maintained by Alibaba Group, one of the largest Internet companies in China. - Modified the Gem mirror in `web.china.template.yml` to the mirror provided by Tsinghua University, one of the top universities in China. - The reason why sed is used to replace the `yarn.lock` file is because `yarn install --frozen-lockfile` is used for installation below. If the url is not replaced, the NPM mirror will not take effect. After applying these modifications, I successfully installed Discourse on the Tencent Cloud China server. No more network problems.
- Loading branch information