Bad error messages if ERB causes exceptions
View earlier messages: 1 Day | 1 Week | 2 Weeks | 1 Month | 3 Months | 6 Months | 1 Year | All Chad Woolley (work) 4:30 PM hi pivotalguerrero 4:30 PM yo Chad Woolley (work) 4:31 PM did you need something? pivotalguerrero 4:36 PM trying to debug this: 4:36 PM
root@domU-12-31-39-03-C1-22:/home/rails/xxx/current#
geminstaller RAILS_ENV=demo
uninitialized constant GemInstaller::ConfigBuilder::RAILS_ENV 4:36
PM
ideas? 4:36 PM
And we miss your sparkling personality. Chad Woolley (work) 4:37 PM what is the command pivotalguerrero 4:37 PM geminstaller Chad Woolley (work) 4:38 PM i don't know. Why would geminstaller be accessing that? pivotalguerrero 4:38 PM Geminstaller::ConfigBuilder::RAILS_ENV? 4:39 PM
It has geminstaller in the name Chad Woolley (work) 4:39 PM who is this pivotalguerrero 4:39 PM Parker and Adam 4:39 PM
Parkam Chad Woolley (work) 4:40 PM there is no occurrence of RAILS_ENV in the geminstaller source 4:40 PM
what bad things are you doing pivotalguerrero 4:40 PM Uh 4:40 PM
Calling geminstaller? 4:41 PM
This is a new machine instance coming up in EC2. The script just
goes to the application directly and calls geminstaller. We get
this error message. Chad Woolley (work) 4:41 PM pass -gall -rall
and give output pivotalguerrero 4:42 PM
root@domU-12-31-39-03-C1-22:/home/rails/xxx/current# geminstaller
-gall -rall Found GemInstaller config file at:
/home/rails/kitabu_worker/current/config/geminstaller.yml
uninitialized constant GemInstaller::ConfigBuilder::RAILS_ENV
(erb):7:in include_config_binding'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/config_builder.rb:62:ininclude_config_binding'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/config_builder.rb:33:in
build_config'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/config_builder.rb:32:inchdir'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/config_builder.rb:32:in
build_config'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/config_builder.rb:19:ineach'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/config_builder.rb:19:in
build_config'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/application.rb:63:increate_gems_from_config'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller/application.rb:17:in
install'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/lib/geminstaller.rb:18:ininstall'
/usr/lib/ruby/gems/1.8/gems/geminstaller-0.5.1/bin/geminstaller:30
/usr/bin/geminstaller:19:in load' /usr/bin/geminstaller:19
Chad Woolley (work) 4:42 PM your yaml file is bad 4:42
PM
paste that pivotalguerrero
4:43 PM
gems: - name: geminstaller version: 0.5.1 - name: activesupport version: 2.2.2 <% if %w(development test).include?(RAILS_ENV) %>
this is installed as a local package on ec2, can't require it as a gem
- name: rmagick version: 1.15.7 <% end %>
- name: rest-client version: 0.9
- name: daemons version: 1.0.10
- name: right_aws version: 1.10.0
- name: libxml-ruby version: 1.1.2 Chad Woolley (work) 4:44 PM rails env is not a constant in that scope 4:44 PM
ENV['RAILS_ENV'] pivotalguerrero 4:44 PM So it isn't. Chad Woolley (work) 4:44 PM but I should handle it better pivotalguerrero 4:44 PM Parker says you're the shizzy. 4:44 PM
I think that's a good thing.
Thanks d00d
Reported by Chad Woolley · April 1st, 2009 @ 04:47 PM
No comments yet.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.