用 MacVim 编辑 Octopress 的文章,在rake deploy
的时候 MacVim 的.swap 档会导致错误,报错信息如下
[email protected]~/octopress]$ rake deploy
cp -r source/_posts/.2013-04-28-test.markdown.swp public/_posts/.2013-04-28-test.markdown.swp
rake aborted!
No such file or directory - public/_posts/.2013-04-28-test.markdown.swp
/Users/Stephen/octopress/Rakefile:229:in `block (2 levels) in <top (required)>'
/Users/Stephen/octopress/Rakefile:228:in `block in <top (required)>'
/Users/Stephen/octopress/Rakefile:218:in `block in <top (required)>'
/Users/Stephen/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
/Users/Stephen/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => copydot
(See full trace by running task with --trace)
查了 Google 和 Baidu,都没找到可行的解决方案,每次都要手工把.swap 档删掉才能rake deploy
,不知道有没有人遇到类似的问题,有顺利解决的,谢谢。