进入您的 discourse 文件夹,您会看到 templates,然后是 web.template,我查找了 yarn 的提及位置并在其下方添加了它。
找到了。我需要在 600000 TO yarn config 行之前添加 - exec 行吗?它是否也应该包含“hook: yarn”?
为了说清楚,我在 yarn exec if-fi 语句之前添加了这一行,并且它完美运行。谢谢 @Genisis。您需要添加正确的间距以匹配周围的 exec。
exec:
cd: $home
cmd: - “su discourse -c ‘yarn config set network-timeout 600000 -g’”
1 个赞
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.