[Rails] Re: Noob Install Failed 0.0.0.0:3000
On Dec 20, 6:09 pm, BearState <wixelb...@gmail.com> wrote:
>
> I note two oddities which I'm sure are related to the failure ...
>
> Rails 2.3.3 application starting onhttp://0.0.0.0:3000
> c:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
> custom_require.rb:31:in `g
> em_original_require': C:/Program Files/Apache Software Foundation/
> Apache2.2/htdo
> cs/rails/config/environment.rb:4: syntax error, unexpected
> '<' (SyntaxError)
> <%= '# ' if freeze %>RAILS_GEM_VERSION = '<%= Rails::VERSION::STRING
> %>' unless
> defined? RAILS_GEM_VERSION
>
> ---------------
>
> Notice that the IP is 0.0.0.0 instead of 127.0.0.1
>
The ip address is not a problem - 0.0.0.0 is shorthand for 'listening
on all interfaces'. The syntax error is really weird though. When you
do rails app_name it creates a bunch of files for you. Some of them
are just copied verbatim, others are templates with some bits of
information filled in on the fly. config/environment.rb is one such
file. Hard to be sure without seeing the whole file but from the
excerpt of the file contained in the error it looks like the template
for environment.rb was just copied verbatim, without being evaluated.
I suppose it's possible that funny path names were part of the reason
- easiest way to find out is to try again in a different location.
Fred
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home