imathis/octopress — pull request #330 by jpravetz (2011-12-17 01:47:43+00:00)
Title: Rakefile mode switch

Added a rakefile switch to allow deployment to production or development servers.
* Generates _config.yml from source files (config-default.yml + config-MODE.yml) (task :gen_config)
* Can specify different deploy document_root for different modes.
* Defaults to development (rake task names backward compatible)
* Added rake task options, eg. rake generate['production']

Pull request submitted in case someone else finds this useful. Or please tell me if I duplicated some work that was already done. There is a Jekyll pull request for a config switch on the command line (https://github.com/mojombo/jekyll/pull/393). If this existed then presumably the _config.yml would not need to be generated, but the octopress rakefile would still need a MODE option.