Skip to content

Commit 6c37c5d

Browse files
authored
Update Discourse installation support in China (pnpm) (#867)
This commit updates 2 things. 1. Updates the yarn hook to replace the npm mirror before `pnpm install`. 2. Removes the `yarn.lock` patch as pnpm is now used. After applying these modifications, I successfully installed Discourse on the Tencent Cloud China server. No more network problems.
1 parent 928adfd commit 6c37c5d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/web.china.template.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ hooks:
1212
before_yarn:
1313
- exec:
1414
cmd:
15-
- su discourse -c 'yarn config set registry https://registry.npmmirror.com --global'
16-
- su discourse -c 'cd $home && sed -i "s#https://registry.yarnpkg.com#https://registry.npmmirror.com#g" yarn.lock'
15+
- su discourse -c 'pnpm config set registry https://registry.npmmirror.com --global'
1716

1817
before_bundle_exec:
1918
- exec:

0 commit comments

Comments
 (0)