Closed pabloalr closed 12 years ago
can you post the full stack trace?
Sure! Here it goes:
$ bundle exec blazing update staging
------> [blazing] INFO : Adding new remote staging pointing to mailee3@maileebeta.me:/home/mailee3/maileebeta.me
------> [blazing] INFO : Generating and uploading post-receive hook for staging
/Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/hook.rb:32:in `load_template': uninitialized constant Blazing::Hook::ERB (NameError)
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/hook.rb:52:in `generate_hook'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/hook.rb:41:in `prepare_hook'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/hook.rb:16:in `setup'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/target.rb:30:in `update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/commands.rb:40:in `block in update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/commands.rb:40:in `each'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/commands.rb:40:in `update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/commands.rb:8:in `run'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/lib/blazing/cli.rb:43:in `update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/blazing-0.2.11/bin/blazing:6:in `<top (required)>'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `load'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `<main>'
Can't reproduce this on my sandboxes, but I think I know where the problem is. Can you try running blazing update from blazing master? Just use 'blazing', :git => 'git://github.com/effkay/blazing.git'
in your Gemfile.
Sure, just a minute.
On Wed, Jul 11, 2012 at 6:18 PM, Felipe Kaufmann < reply@reply.github.com
wrote:
Can't reproduce this on my sandboxes, but I think I know where the problem is. Can you try running blazing update from blazing master? Just use
'blazing', :git => 'git://github.com/effkay/blazing.git'
in your Gemfile.
Reply to this email directly or view it on GitHub: https://github.com/effkay/blazing/issues/68#issuecomment-6920088
Now I got
$ bundle exec blazing update staging
/Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `require': no such file to load -- blazing-269ee17d65d1 (LoadError)
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `block in load_recipes!'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `each'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `load_recipes!'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/config.rb:16:in `parse'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/commands.rb:18:in `initialize'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/commands.rb:8:in `new'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/commands.rb:8:in `run'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/cli.rb:43:in `update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/bin/blazing:6:in `<top (required)>'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `load'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `<main>'
Ok, just opened #69, as this is another issue you just uncovered. Thanks for the bug hunting ;-)
I just pushed a fix to master. Can you try again? (bundle update blazing before that of course)
Hey, no problem! I'll fork and help you out.
Meanwhile, I just upgraded again and got:
$ bundle exec blazing update staging
------> [blazing] INFO : Adding new remote staging pointing to mailee3@maileebeta.me:/home/mailee3/maileebeta.me
------> [blazing] INFO : Generating and uploading post-receive hook for staging
/Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/hook.rb:32:in `load_template': uninitialized constant ERB (NameError)
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/hook.rb:52:in `generate_hook'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/hook.rb:41:in `prepare_hook'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/hook.rb:16:in `setup'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/target.rb:30:in `update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/commands.rb:40:in `block in update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/commands.rb:40:in `each'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/commands.rb:40:in `update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/commands.rb:8:in `run'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/lib/blazing/cli.rb:43:in `update'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-e6fdf46c128c/bin/blazing:6:in `<top (required)>'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `load'
from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `<main>'
Meh... that's the same error again. I thought this was the missing :: in front of ERB. Will need to have a closer look in a few minutes. And yes, of course, feel free to fork!
Ok, was missing a require 'erb' apparently. Was able to reproduce your last error and fix it. Can you confirm?
Fix confirmed!
Thank you very much!
On Wed, Jul 11, 2012 at 6:47 PM, Felipe Kaufmann < reply@reply.github.com
wrote:
Ok, was missing a require 'erb' apparently. Was able to reproduce your last error and fix it. Can you confirm?
Reply to this email directly or view it on GitHub: https://github.com/effkay/blazing/issues/68#issuecomment-6920830
De nada :)
Just released 0.2.12 with the fixes, hope you can deploy now :)
Yep! Like a charm :)
On Wed, Jul 11, 2012 at 7:00 PM, Felipe Kaufmann < reply@reply.github.com
wrote:
Just released 0.2.12 with the fixes, hope you can deploy now :)
Reply to this email directly or view it on GitHub: https://github.com/effkay/blazing/issues/68#issuecomment-6921162
Just got this after running "blazing update" with gem at 0.2.11, and looks like my hooks are gone.
Had to downgrade to 0.2.10 to create the hooks again.