如何在sublime text 2中基于每个项目覆盖Octopress路径?

时间:2013-06-24 06:07:51

标签: plugins sublimetext2 octopress

我最近安装octopress作为我的博客平台以及Sublime Text 2 Octopress插件,以简化生成,部署和其他任务。

默认设置

默认设置(octopress.sublime-settings)如下:

// path to your octopress
"octopress_path": "/you_octopress_path",

项目设置

但是,当我尝试使用/home/me/projects/blog.sublime-project(父目录)中的per-project settings覆盖它们时:

{
    "folders":
    [
        {
            "path": "/home/me/projects/blog"
        }
    ],
  "settings":
  {
    // path to your octopress
    "octopress_path": "/home/me/projects/blog"
  }
}

正在运行generate任务

当我从generate运行sublime text 2命令时,出现以下错误:

Starting to generate...
octopress exec start.
source ~/.zshrc; bundle exec rake
Traceback (most recent call last):
  File "./sublime_plugin.py", line 339, in run_
  File "./octopress.py", line 161, in run
  File "./octopress.py", line 28, in exec_command
OSError: [Errno 2] No such file or directory: '/you_octopress_path/'

问题

  1. 那么为什么不考虑我的配置并回退到默认值?
  2. 如何在sublime text 2中基于每个项目覆盖Octopress路径?

0 个答案:

没有答案