Sara,

Other people have had problem with yml files since they ARE tab- and
space-sensitive. Make sure you're editing them in a text-safe
environment and that there's no cross-OS problems. Also, you can try
doing a SVN revert on that yml file and make sure you don't mess with
the spacing or tabs.



On 1/4/07, Sara <[EMAIL PROTECTED]> wrote:
> All,
> If I try that I get this
> $ ruby script/setup_database production
> Run `setup_database --help` for information on additional options.
>
> Loading production environment...FAILED
> /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 7, col -3:
> `test: (ArgumentError)
>   adapter: mysql
>   database: radiant_test
>   username: myusername
>   password: mypassword
>
>
> production:
>   adapter: mysql
>   database: radiant_live
>   username: myusername
>   password:mypassword
> '       from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
>         from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:459:in
> `database_configuration'
>         from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:181:in
> `initialize_database'
>         from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:84:in
> `process'
>         from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in
> `run'
>         from ./script/../config/environment.rb:15
>         from script/setup_database:78:in `load_environment'
>         from script/setup_database:258:in `announce'
>         from script/setup_database:77:in `load_environment'
>         from script/setup_database:17:in `run'
>         from script/setup_database:9:in `run'
>         from script/setup_database:297
> [EMAIL PROTECTED]:/usr/lib/ruby/gems/1.8/gems/radiant-0.5.2$ ruby
> script/server webrick -e production
> => Booting WEBrick...
> /usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - tmp
> (Errno::EACCES)
>         from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
>         from /usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
>         from /usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
>         from /usr/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'
>         from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/server.rb:29
>         from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
>
> from 
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
> `require'
>         from script/server:3
>
>
>
>
> On Thursday 04 January 2007 14:36, Chris O'Meara wrote:
> > I believe I took the sample file and whacked the socket entry.
> >
> > On Jan 4, 2007, at 2:24 PM, Ruben D. Orduz wrote:
> > > no host specified? Or did you purposely ommited it?
> > >
> > > On 1/4/07, Chris O'Meara <[EMAIL PROTECTED]> wrote:
> > >> Here's what my database.yml looks like for my Radiant install on
> > >> Unbuntu:
> > >>
> > >> production:
> > >>    adapter: mysql
> > >>    database: cr_radiant_live
> > >>    username: user
> > >>    password: password
> > >>
> > >> I'm running on SliceHost.  My RAILS_ENV is production (obviously).
> > >>
> > >> Cheers,
> > >> Chris
> >
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to