try the -c flag (cwd) - set it to your rails app base path.
Also suggest you cd to that dir, use the -G flag to write a yaml config
file, check all of mongrel's assumptions and then either change your command
line options or the config file (if you want to use one) until it works.
cheers
David
On Thu, May 8, 2008 at 5:11 PM, DanyJ <danyj
...@yahoo.com.au> wrote:
> Hi Everyone
> Not sure is the right place to post - if so apologies and guide me
> please!
> I am new to this group and just getting in Ruby, and need some help -
> I am stuck trying getting mongrel to work. Not much help Googling
> neither ... at least little help I found, not helpful :(!
> I get following error starting mongrel on Hardy (installed ruby/
> mongrel via adept)
> root@git029:~# mongrel_rails start -p 8000 -l /var/log/mongrel.log -P /
> var/log/mongrel.pid -r /home/rubydoc
> ** Starting Mongrel listening at 0.0.0.0:8000
> ** Starting Rails with development environment...
> /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- /root/config/
> environment (LoadError)
> from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from /usr/lib/ruby/1.8/mongrel/rails.rb:147:in `rails'
> from /usr/bin/mongrel_rails:114:in `cloaker_'
> from /usr/lib/ruby/1.8/mongrel/configurator.rb:149:in `call'
> from /usr/lib/ruby/1.8/mongrel/configurator.rb:149:in
> `listener'
> from /usr/bin/mongrel_rails:100:in `cloaker_'
> from /usr/lib/ruby/1.8/mongrel/configurator.rb:50:in `call'
> from /usr/lib/ruby/1.8/mongrel/configurator.rb:50:in
> `initialize'
> from /usr/bin/mongrel_rails:85:in `new'
> from /usr/bin/mongrel_rails:85:in `run'
> from /usr/lib/ruby/1.8/mongrel/command.rb:212:in `run'
> from /usr/bin/mongrel_rails:282
> can any one help?
> Thanks
> Dany.
--
cheers,
David Lee