Dear all, I''m a newbie in ROR. my environment: ruby 1.8.5 rails 2.0.2 Lighttpd scgi_rails 0.4.3 working in development model. questions: 1. I made some changes to config/environment.rb, and restart lighttpd, but the changes didn''t take any effect. I then even change RAILS_GEM_VERSION = ''2.0.2'' unless defined? RAILS_GEM_VERSION to RAILS_GEM_VERSION = ''8.0.2'' unless defined? RAILS_GEM_VERSION the application start as normal. Finally, I deleted environment.rb, but the application runs as well! What happened? 2. in the development model , I once deleted log/development.log because it''s too large. then, I made a new development.log file with only a line. Strange thing is that, development.log then never change any more. Anyone can explain the above questions? Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 24 Jun 2008, at 11:15, Bobov wrote:> > Dear all, > I''m a newbie in ROR. > > my environment: > ruby 1.8.5 > rails 2.0.2 > Lighttpd > scgi_rails 0.4.3 > working in development model. > > questions: > 1. I made some changes to config/environment.rb, and restart > lighttpd, but the changes didn''t take any effect. I then even change > RAILS_GEM_VERSION = ''2.0.2'' unless defined? RAILS_GEM_VERSION > to > RAILS_GEM_VERSION = ''8.0.2'' unless defined? RAILS_GEM_VERSION > the application start as normal. > Finally, I deleted environment.rb, but the application runs as well! > What happened? > > 2. in the development model , I once deleted log/development.log > because it''s too large. then, I made a new development.log file with > only a line. Strange thing is that, development.log then never change > any more. >Sounds like you''re not running the code you thing you are running (in particular perhaps you didn''t restart what is actually processing your rails requests ?) How are you starting your rails app? 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-/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 -~----------~----~----~----~------~----~------~--~---
Thanks for your information. I start my rails app using Lighttpd and scgi, as following: /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf ruby usr/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_service config/scgi.yaml And this is the content of scgi.yaml: :port: 9999 :password: brA4gP6Xahk.6 :logfile: log/scgi.log :control_url: druby://127.0.0.1:8999 :config: config/scgi.yaml :disable_signals: true :env: development :host: 127.0.0.1 I''m thinking maybe there''s something wrong with scgi. On 6月24日, 下午6时17分, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 24 Jun 2008, at 11:15, Bobov wrote: > > > > > > > Dear all, > > I''m a newbie in ROR. > > > my environment: > > ruby 1.8.5 > > rails 2.0.2 > > Lighttpd > > scgi_rails 0.4.3 > > working in development model. > > > questions: > > 1. I made some changes to config/environment.rb, and restart > > lighttpd, but the changes didn''t take any effect. I then even change > > RAILS_GEM_VERSION = ''2.0.2'' unless defined? RAILS_GEM_VERSION > > to > > RAILS_GEM_VERSION = ''8.0.2'' unless defined? RAILS_GEM_VERSION > > the application start as normal. > > Finally, I deleted environment.rb, but the application runs as well! > > What happened? > > > 2. in the development model , I once deleted log/development.log > > because it''s too large. then, I made a new development.log file with > > only a line. Strange thing is that, development.log then never change > > any more. > > Sounds like you''re not running the code you thing you are running (in > particular perhaps you didn''t restart what is actually processing your > rails requests ?) > How are you starting your rails app? > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
On 24 Jun 2008, at 14:41, Bobov wrote:> > Thanks for your information. > I start my rails app using Lighttpd and scgi, as following: > /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf > ruby usr/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/bin/scgi_serviceI know nothing about scgi, but I''d guess that the think you need to be restarting is the scgi_service, not lighttpd Fred> > config/scgi.yaml > And this is the content of scgi.yaml: > :port: 9999 > :password: brA4gP6Xahk.6 > :logfile: log/scgi.log > :control_url: druby://127.0.0.1:8999 > :config: config/scgi.yaml > :disable_signals: true > :env: development > :host: 127.0.0.1 > I''m thinking maybe there''s something wrong with scgi. > > > > On 6月24日, 下午6时17分, Frederick Cheung > <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On 24 Jun 2008, at 11:15, Bobov wrote: >> >> >> >> >> >>> Dear all, >>> I''m a newbie in ROR. >> >>> my environment: >>> ruby 1.8.5 >>> rails 2.0.2 >>> Lighttpd >>> scgi_rails 0.4.3 >>> working in development model. >> >>> questions: >>> 1. I made some changes to config/environment.rb, and restart >>> lighttpd, but the changes didn''t take any effect. I then even change >>> RAILS_GEM_VERSION = ''2.0.2'' unless defined? RAILS_GEM_VERSION >>> to >>> RAILS_GEM_VERSION = ''8.0.2'' unless defined? RAILS_GEM_VERSION >>> the application start as normal. >>> Finally, I deleted environment.rb, but the application runs as well! >>> What happened? >> >>> 2. in the development model , I once deleted log/development.log >>> because it''s too large. then, I made a new development.log file with >>> only a line. Strange thing is that, development.log then never >>> change >>> any more. >> >> Sounds like you''re not running the code you thing you are running (in >> particular perhaps you didn''t restart what is actually processing >> your >> rails requests ?) >> How are you starting your rails app? >> >> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---