I ran the same command in my other project and the server started without any errors but when I created a new project, I am getting the following error. I would appreciate any pointers. Thanks Syed D:\AddressBook>ruby script/server => Booting WEBrick... D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 18, col 2: ` host: localhost'' (ArgumentError) from D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'' from D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:551:in `database_configuration'' from D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:234:in `initialize_database'' from D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:92:in `process'' from D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:47:in `send'' from D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:47:in `run'' from ./script/../config/../config/environment.rb:13 from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require''... 10 levels... from D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39 from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: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 -~----------~----~----~----~------~----~------~--~---
Show us your database.yml please. On Dec 5, 2007 1:50 PM, Syed Rizvi <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I ran the same command in my other project and the server started > without any errors but when I created a new project, I am getting the > following error. I would appreciate any pointers. > > Thanks > > Syed > > D:\AddressBook>ruby script/server > => Booting WEBrick... > D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 18, col > 2: ` host: localhost'' (ArgumentError) > from D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:551:in > `database_configuration'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:234:in > `initialize_database'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:92:in > `process'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:47:in > `send'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:47:in > `run'' > from ./script/../config/../config/environment.rb:13 > from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require''... 10 levels... > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39 > from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from script/server:3 > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ryan Bigg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Did you use a tab instead of spaces? YAML doesn''t like tabs. -Bill Syed Rizvi wrote:> I ran the same command in my other project and the server started > without any errors but when I created a new project, I am getting the > following error. I would appreciate any pointers. > > Thanks > > Syed > > D:\AddressBook>ruby script/server > => Booting WEBrick... > D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 18, col > 2: ` host: localhost'' (ArgumentError) > from D:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:551:in > `database_configuration'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:234:in > `initialize_database'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:92:in > `process'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:47:in > `send'' > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:47:in > `run'' > from ./script/../config/../config/environment.rb:13 > from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require''... 10 levels... > from > D:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/commands/server.rb:39 > from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from D:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from script/server:3 >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---