You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks like a problem I just ran into. Had to do with an unset EDITOR environment variable. Everything ran smoothly when I ran EDITOR=vim rake heroku:create_config
On OSX it appears that the environment variable EDITOR is unset by default. That causes the last step of the heroku:create_config task sh("#{ENV['EDITOR']} #{HEROKU_CONFIG_FILE}") to fail because you're really just calling sh("#{HEROKU_CONFIG_FILE}")
My workaround ensures that EDITOR is set before calling rake, but a more defensive solution would probably check if EDITOR is set, launch if it is, or if not just print a message that the user should then edit config/heroku.yml by hand.
I get the following error after installing the latest gem.
macbook-pro:cvmongo Ben$ sudo rake heroku:create_config --trace
(in /Users/Ben/Dropbox/Web/cvmongo)
** Invoke heroku:create_config (first_time)
** Execute heroku:create_config
Copied example config to config/heroku.yml
/Users/Ben/Dropbox/Web/cvmongo/config/heroku.yml
rake aborted!
Command failed with status (127): [ /Users/Ben/Dropbox/Web/cvmongo/config/her...]
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in
sh' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in
call'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in
sh' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in
sh'/Library/Ruby/Gems/1.8/gems/heroku_san-1.0.8/lib/heroku_san/tasks.rb:111
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
execute'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
each' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
execute'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
synchronize'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
invoke'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
top_level'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling'/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in
load'/usr/bin/rake:19
macbook-pro:cvmongo
The text was updated successfully, but these errors were encountered: