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:inrequire’
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:innew_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:ingem_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:inrequire’
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:inrequire’
from
./script/…/config/…/vendor/rails/railties/lib/commands/server.rb:39
from script/server:3:in `require’
from script/server:3

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 [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs