今天我在我的Mac上安装了Jekyll。 一切都很顺利,我已经这样做了: 安装RVM - >通过RVM安装Ruby - >安装Jekyll没有问题
但是现在当我尝试运行我的构建时,它会部署正常但会报告错误。我在终端中包含了我所做的一切:
Mortens-MacBook-Pro:~ mortenpradsgaard$ cd /Users/mortenpradsgaard/Documents/GitHub
Mortens-MacBook-Pro:GitHub mortenpradsgaard$ cd sostdk
Mortens-MacBook-Pro:sostdk mortenpradsgaard$ jekyll serve
Configuration file: /Users/mortenpradsgaard/Documents/GitHub/sostdk/_config.yml
Source: /Users/mortenpradsgaard/Documents/GitHub/sostdk
Destination: /Users/mortenpradsgaard/Documents/GitHub/sostdk/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.134 seconds.
Auto-regeneration: enabled for '/Users/mortenpradsgaard/Documents/GitHub/sostdk'
Server address: http://127.0.0.1:4000/sostdk//
Server running... press ctrl-c to stop.
E, [2017-06-29T14:06:16.311105 #5384] ERROR -- : fsevent: running worker failed: wrong number of arguments (2 for 1):/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:41:in `block (2 levels) in configure'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:52:in `_run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:78:in `block in start'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add' called from: /Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:67:in `_run_worker'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:52:in `_run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:78:in `block in start'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
答案 0 :(得分:3)
我们在jekyll构建中遇到了同样的问题。事实证明这是rb-fsevent gem的问题,现在应该从0.10.2 解决。
对于后人和未来的搜索,在我们的Gemfile中指定版本0.9.8使我们保持良好状态,直到rb-fsevent修复登陆:
<强>的Gemfile 强>
public function store(Post $post)
{
$this->validate(request(), ['body'=> 'required|min:2']);
$post->addComment(request('body'));
return back();
}
答案 1 :(得分:0)
这是有问题的存储库吗? https://github.com/sostdk/sostdk/
在_config.yml
中,您拥有baseurl
的{{1}}重复部分:
siteurl
如果您将siteurl: https://sostdk.github.io/sostdk/
baseurl: /sostdk/
更改为siteurl
并将https://sostdk.github.io/sostdk
更改为baseurl
,则可能会修复您的错误。
您可能希望将存储库名称从/
更改为sostdk
。这样,您就可以将sostdk.github.io
部分保留为/sostdk
。