Hello – just started running into a strange problem and no amount of rollbacks seems to resolve it.
When I run rake build, I immediately see a cd into a directory two levels higher than the current folder. Not sure why this is happening. My rake file is super simple:
require 'middleman-gh-pages'
task :default => [:build]
… and my middleman server runs perfectly. Below is my stack trace:
daniel:DocsGenerator daniel$ rake build --trace
** Invoke build (first_time)
** Execute build
cd /Users/daniel/_GIT/FolderTwoLevelsUp
bundle exec middleman build --clean
Could not locate Gemfile
rake aborted!
Command failed with status (10): [bundle exec middleman build --clean...]
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/file_utils.rb:54:in `block in create_shell_runner'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/file_utils.rb:45:in `call'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/file_utils.rb:45:in `sh'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/file_utils_ext.rb:37:in `sh'
/Library/Ruby/Gems/2.0.0/gems/middleman-gh-pages-0.0.3/lib/middleman-gh-pages/tasks/gh-pages.rake:60:in `block (2 levels) in <top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:in `chdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:125:in `cd'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/file_utils_ext.rb:37:in `cd'
/Library/Ruby/Gems/2.0.0/gems/middleman-gh-pages-0.0.3/lib/middleman-gh-pages/tasks/gh-pages.rake:59:in `block in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/task.rb:240:in `call'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/task.rb:240:in `block in execute'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/task.rb:235:in `each'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/task.rb:235:in `execute'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/task.rb:165:in `invoke'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:150:in `invoke_task'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:106:in `each'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:106:in `block in top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:115:in `run_with_threads'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:100:in `top_level'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:78:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:176:in `standard_exception_handling'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/lib/rake/application.rb:75:in `run'
/Library/Ruby/Gems/2.0.0/gems/rake-10.3.1/bin/rake:33:in `<top (required)>'
/usr/bin/rake:23:in `load'
/usr/bin/rake:23:in `<main>'
Tasks: TOP => build
daniel:DocsGenerator daniel$
Thanks!