在MacBook上导入私有Discourse主题仓库

require 'sshkey'
remote = 'git@github.com:private/theme_name.git' # 私有的 Github discourse 主题仓库
theme_user = Discourse.system_user
private_key = SSHKey.generate.private_key
branch = 'main'
RemoteTheme.import_theme(remote, theme_user, private_key: private_key, branch: branch)
Errno::ENOENT: No such file or directory - timeout
from /Users/foo/.rbenv/versions/2.7.2/lib/ruby/2.7.0/open3.rb:213:in `spawn'`

-=>

我发现 Mac 不支持 timeout 命令

尝试 brew install coreutils

2 个赞

谢谢,我可以用 coreutils 来解决它。我认为需要抛出这个错误,并尝试给出更好的错误提示!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.