Zhan feng Wang
2007-Aug-17 07:22 UTC
Problem "ruby script/server", if I need change the program?
How come like this: ruby script/server => Booting WEBrick... /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'': ./script/../config/../config/environment.rb:8: syntax error, unexpected ''<'' (SyntaxError) <%= ''# '' if freeze %>RAILS_GEM_VERSION = ''<%= Rails::VERSION::STRING %>'' unless defined? RAILS_GEM_VERSION ^ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'' from ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:52 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' from ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'' from ./script/../config/../vendor/rails/railties/lib/commands/server.rb:39 from script/server:3:in `require'' from script/server:3 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
raghukumar
2007-Aug-17 18:36 UTC
Re: Problem "ruby script/server", if I need change the program?
Hey zhan, I feel it''s unable to identify the ERB code which you are written in your application''s environment.rb file(as it is showing line number 8) Just check whether ERB code is supported inside environment.rb file On Aug 17, 12:22 pm, Zhan feng Wang <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> How come like this: > > ruby script/server > => Booting WEBrick... > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'': ./script/../config/../config/environment.rb:8: > syntax error, unexpected ''<'' (SyntaxError) > <%= ''# '' if freeze %>RAILS_GEM_VERSION = ''<%= Rails::VERSION::STRING %>'' > unless defined? RAILS_GEM_VERSION > ^ from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in > `require'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in > `require'' > from > ./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:52 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in > `require'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > from > ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in > `require'' > from > ./script/../config/../vendor/rails/railties/lib/commands/server.rb:39 > from script/server:3:in `require'' > from script/server:3 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---