Greg Freemyer
2006-Feb-15 23:41 UTC
[Rails] Lighttpd now works for production. Development is broken?
I''ve finally gotten lighttpd working for my production instance (SUSE 10.0 with SSL). (Had to install the fcgi dev toolkit, the SUSE 10 ruby-fcgi rpm, and the fcgi gem. I''m not positive all 3 were required, but that is what I did.) Now the devel instance of my app is broken. I''m not sure how to fix it. Previously I was using WEBrick for both devel and production. (their on the same box). I only have the lighttpd config file setup to support my production instance. Now when I try to run rails/app.devel/script/server it appears to try and run lighttpd. Unfortunately this fails. Do I need to update my lighttpd config to support devel, or somehow force script/server to launch WEBrick? Thanks Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
Roustem Karimov
2006-Feb-16 00:10 UTC
[Rails] Lighttpd now works for production. Development is broken?
On Wednesday, February 15, 2006, at 6:41 PM, Greg Freemyer wrote:>I''ve finally gotten lighttpd working for my production instance (SUSE >10.0 with SSL). > >(Had to install the fcgi dev toolkit, the SUSE 10 ruby-fcgi rpm, and >the fcgi gem. I''m not positive all 3 were required, but that is what >I did.) > >Now the devel instance of my app is broken. > >I''m not sure how to fix it. > >Previously I was using WEBrick for both devel and production. (their >on the same box). > >I only have the lighttpd config file setup to support my production >instance. > >Now when I try to run rails/app.devel/script/server it appears to try >and run lighttpd. > >Unfortunately this fails. Do I need to update my lighttpd config to >support devel, or somehow force script/server to launch WEBrick? > >Thanks >Greg >-- >Greg Freemyer >The Norcross Group >Forensics for the 21st Century >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/railsWe tried to use one file for both production and development but it never worked very well. Right now, for DevLists.com there is config/ lighttpd.conf for development and config/lighttpd-devlists.conf for production. I like having app name in the production config file name -- we run multiple instances of lighttpd and this makes it easier to kill the right one when needed. Best Regards, Roustem. -- Posted with http://DevLists.com. Sign up and save your time!
Ezra Zygmuntowicz
2006-Feb-16 00:11 UTC
[Rails] Lighttpd now works for production. Development is broken?
On Feb 15, 2006, at 3:41 PM, Greg Freemyer wrote:> I''ve finally gotten lighttpd working for my production instance (SUSE > 10.0 with SSL). > > (Had to install the fcgi dev toolkit, the SUSE 10 ruby-fcgi rpm, and > the fcgi gem. I''m not positive all 3 were required, but that is what > I did.) > > Now the devel instance of my app is broken. > > I''m not sure how to fix it. > > Previously I was using WEBrick for both devel and production. (their > on the same box). > > I only have the lighttpd config file setup to support my production > instance. > > Now when I try to run rails/app.devel/script/server it appears to try > and run lighttpd. > > Unfortunately this fails. Do I need to update my lighttpd config to > support devel, or somehow force script/server to launch WEBrick? > > Thanks > Greg > -- > > Greg Freemyer > The Norcross Group > Forensics for the 21st Century > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Greg- What version of l;ighttpd are you using? The recent versions ( >=1.4.9 ) cannot use relative paths in the config file. So the lighttpd.conf file in your config directory needs to be edited and add full absolute paths to your public dir and your dispatch.fcgi. Cheers- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com
Greg Freemyer
2006-Feb-16 00:16 UTC
[Rails] Lighttpd now works for production. Development is broken?
On 16 Feb 2006 00:10:14 -0000, Roustem Karimov <devlists-rubyonrails@devlists.com> wrote:> > On Wednesday, February 15, 2006, at 6:41 PM, Greg Freemyer wrote: > >I''ve finally gotten lighttpd working for my production instance (SUSE > >10.0 with SSL). > > > >(Had to install the fcgi dev toolkit, the SUSE 10 ruby-fcgi rpm, and > >the fcgi gem. I''m not positive all 3 were required, but that is what > >I did.) > > > >Now the devel instance of my app is broken. > > > >I''m not sure how to fix it. > > > >Previously I was using WEBrick for both devel and production. (their > >on the same box). > > > >I only have the lighttpd config file setup to support my production > >instance. > > > >Now when I try to run rails/app.devel/script/server it appears to try > >and run lighttpd. > > > >Unfortunately this fails. Do I need to update my lighttpd config to > >support devel, or somehow force script/server to launch WEBrick? > > > >Thanks > >Greg > >-- > >Greg Freemyer > >The Norcross Group > >Forensics for the 21st Century > >_______________________________________________ > >Rails mailing list > >Rails@lists.rubyonrails.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > We tried to use one file for both production and development but it > never worked very well. Right now, for DevLists.com there is config/ > lighttpd.conf for development and config/lighttpd-devlists.conf for > production. > > I like having app name in the production config file name -- we run > multiple instances of lighttpd and this makes it easier to kill the > right one when needed. > > Best Regards, Roustem.Thanks, I can do that easily enough for my standard instances (production, QA, devel). OTOH, with WEBrick I was creating little sandboxes all the time. I would simply make a copy of my devel setup and run script/server --port nnn, where nnn was a unique number. Is there a simple way to make script/server invoke WEBrick, or some other way to easily launch WEBrick manually? Thanks Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century
Roustem Karimov
2006-Feb-16 00:21 UTC
[Rails] Lighttpd now works for production. Development is broken?
On Wednesday, February 15, 2006, at 7:16 PM, Greg Freemyer wrote:> >Is there a simple way to make script/server invoke WEBrick, or some >other way to easily launch WEBrick manually? > >Thanks >Greg >-- >Greg Freemyer >The Norcross Group >Forensics for the 21st Century >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/railsIt is easy: ./script/server webrick Best Regards, Roustem. -- Posted with http://DevLists.com. Sign up and save your time!
Greg Freemyer
2006-Feb-16 00:25 UTC
[Rails] Lighttpd now works for production. Development is broken?
On 2/15/06, Ezra Zygmuntowicz <ezra@yakima-herald.com> wrote:> > On Feb 15, 2006, at 3:41 PM, Greg Freemyer wrote: > > > I''ve finally gotten lighttpd working for my production instance (SUSE > > 10.0 with SSL). > > > > (Had to install the fcgi dev toolkit, the SUSE 10 ruby-fcgi rpm, and > > the fcgi gem. I''m not positive all 3 were required, but that is what > > I did.) > > > > Now the devel instance of my app is broken. > > > > I''m not sure how to fix it. > > > > Previously I was using WEBrick for both devel and production. (their > > on the same box). > > > > I only have the lighttpd config file setup to support my production > > instance. > > > > Now when I try to run rails/app.devel/script/server it appears to try > > and run lighttpd. > > > > Unfortunately this fails. Do I need to update my lighttpd config to > > support devel, or somehow force script/server to launch WEBrick? > > > > Thanks > > Greg > > -- > > > > Greg Freemyer > > The Norcross Group > > Forensics for the 21st Century > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > Greg- > > What version of l;ighttpd are you using? The recent versions > ( >=1.4.9 ) cannot use relative paths in the config file. So the > lighttpd.conf file in your config directory needs to be edited and > add full absolute paths to your public dir and your dispatch.fcgi. > > Cheers- > -Ezra Zygmuntowicz > Yakima Herald-Republic > WebMaster > http://yakimaherald.com > 509-577-7732 > ezra@yakima-herald.comThanks Ezra, That fixed my immediate issue and I see that "script/server webrick" can be used in my sandboxes. I think I''m set. I think I read that edge rails has a fix to be compatible with the relative path issue. That will be very handy as well. Greg -- Greg Freemyer The Norcross Group Forensics for the 21st Century