尝试部署到github页面时,我收到以下错误:
项目文件
[project]
name = andresperezcera
[servers.production]
target = ghpages://andresperezcera/andresperezcera.github.io?cname=andresperezcera.xyz
错误
λ lektor deploy
Deploying to production
Build cache: C:\Users\aperez\AppData\Roaming\Lektor\Cache\builds\75d505d25f90dec1e1ee1c5a3f9da1a3
Target: ghpages://andresperezcera/andresperezcera.github.io?cname=andresperezcera.xyz
Traceback (most recent call last):
File "C:\Python27\Lib\runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Python27\Lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Users\aperez\AppData\Local\lektor-cli\lib\Scripts\lektor.exe\__main__.py", line 9, in <module>
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\click\core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\click\core.py", line 696, in main
rv = self.invoke(ctx)
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\click\core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\click\core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\click\core.py", line 534, in invoke
return callback(*args, **kwargs)
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\click\decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args[1:], **kwargs)
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\click\core.py", line 534, in invoke
return callback(*args, **kwargs)
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\lektor\cli.py", line 282, in deploy_cmd
for line in event_iter:
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\lektor\publisher.py", line 583, in publish
for line in git(['init']):
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\lektor\publisher.py", line 152, in safe_iter
for line in self:
File "c:\users\aperez\appdata\local\lektor-cli\lib\lib\site-packages\lektor\publisher.py", line 141, in __iter__
for l in select.select(streams, [], streams):
select.error: (10038, 'Se intent\xf3 realizar una operaci\xf3n en un elemento que no es un socket')
我的项目文件中必定缺少某些内容。也许连接字符串在Windows或其他东西中不起作用。
答案 0 :(得分:1)
在Windows上不支持发布,直到Lektor 2.0。升级应该有所帮助。