开始处理我网站的更新。前几天工作正常,但现在我收到了错误。
我通常输入CMD(我在Windows 10上)“捆绑exec Jekyll服务 - 监视”,服务器就行了。我可以编辑和保存,并在刷新时反映在浏览器中。
现在我可以这样做了,但是如果我对任何文件进行一次更改就可以了。做另一个改变,我得到一个错误。我必须终止并再次输入。
以下是错误:
D:\Tristen Grant\Documents\GitHub\portfolio>bundle exec jekyll serve --watch
DL is deprecated, please use Fiddle
Configuration file: D:/Tristen Grant/Documents/GitHub/portfolio/_config.yml
Source: D:/Tristen Grant/Documents/GitHub/portfolio
Destination: D:/Tristen Grant/Documents/GitHub/portfolio/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.595 seconds.
Auto-regeneration: enabled for 'D:/Tristen Grant/Documents/GitHub/portfolio'
Configuration file: D:/Tristen Grant/Documents/GitHub/portfolio/_config.yml
Server address: http://127.0.0.1:3000//
Server running... press ctrl-c to stop.
Regenerating: 1 file(s) changed at 2016-09-06 16:16:28 ...done in 0.521498 seconds.
Regenerating: 1 file(s) changed at 2016-09-06 16:16:30 ...error:
Error: No such file or directory - git rev-parse HEAD
Error: Run jekyll build --trace for more information.
[2016-09-06 16:19:35] ERROR Errno::ENOTSOCK: An operation was attempted on something that is not a socket.
C:/Ruby21-x64/lib/ruby/2.1.0/webrick/server.rb:170:in `select'
Terminate batch job (Y/N)? y
Terminate batch job (Y/N)? y
我使用的是Ruby 2.1.5 64位版本。 RubyDevKit,Sass,Bourbon。
任何想法如何解决这个问题?我对Jekyll或ruby知之甚少。刚开始。
答案 0 :(得分:0)
我也在CMD中遇到此错误。你应该安装github's desktop app;尝试从该应用程序获得的GitShell中运行相同的命令。
对我来说,它可以省去在Windows上全局安装git并进行设置的麻烦。