Hey group, I went through the Hivelogic install and it works great. Now I''d like to run lighttpd as a daemon, but when I go into the /usr/local folder where everything was installed, I don''t see a lighttpd directory where the config files would be. If I try "lighttpd start" from the command line, I get an error that says "No configuration file available". Does a config file exist for it and where can I find it. Otherwise, what else can I do to try to get it running? Thanks for the help. Clint
If you''re trying to get lighttpd running so you can serve your rails app, then cd to your rails application directory, then run: script/server -d If you want to run in production mode, edit your config/ environment.rb file and change "development" to "production". The lighttpd.conf file should exist in your config directory. If it doesn''t exist there, running script/server will copy a default config file from your rails install. If script/server runs WEBrick instead of lighttpd, then your path isn''t set up correctly. If you do a `echo $PATH` you should see /usr/ local/sbin in there somewhere. If not edit your ~/.bash_profile or / etc/profile to add it. - Peter On Mar 21, 2006, at 6:51 PM, Clint Pidlubny wrote:> Hey group, > > I went through the Hivelogic install and it works great. Now I''d like > to run lighttpd as a daemon, but when I go into the /usr/local folder > where everything was installed, I don''t see a lighttpd directory where > the config files would be. > > If I try "lighttpd start" from the command line, I get an error that > says "No configuration file available". > > Does a config file exist for it and where can I find it. Otherwise, > what else can I do to try to get it running? > Thanks for the help. > > Clint > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2392 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060322/ba26b3c4/smime.bin
I guess I should have been more specific. Now that I have it running, I''d like to have it run non-Rails web sites on my system as well, so I''d like to setup virtual hosts (or the equivalent with Lighttpd) to run my Rails and non-Rails sites on my computer. I know how to run it for individual apps, I just don''t know how to run this install as a service for my computer as a whole. The only config files I can find exist only in the Rails app. Any thoughts on doing this? Clint On 3/21/06, Peter T Bosse II <ptb@eliving.us> wrote:> > If you''re trying to get lighttpd running so you can serve your rails > app, then cd to your rails application directory, then run: > > script/server -d > > If you want to run in production mode, edit your config/ > environment.rb file and change "development" to "production". > > The lighttpd.conf file should exist in your config directory. If it > doesn''t exist there, running script/server will copy a default config > file from your rails install. > > If script/server runs WEBrick instead of lighttpd, then your path > isn''t set up correctly. If you do a `echo $PATH` you should see /usr/ > local/sbin in there somewhere. If not edit your ~/.bash_profile or / > etc/profile to add it. > > - Peter >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060322/6dd47651/attachment.html
Clint, Here''s a good option: http://hivelogic.com/articles/2005/12/29/lighttpd_launchd_item - Peter On Mar 22, 2006, at 8:54 AM, Clint Pidlubny wrote:> I guess I should have been more specific. Now that I have it > running, I''d like to have it run non-Rails web sites on my system > as well, so I''d like to setup virtual hosts (or the equivalent with > Lighttpd) to run my Rails and non-Rails sites on my computer. I > know how to run it for individual apps, I just don''t know how to > run this install as a service for my computer as a whole. The only > config files I can find exist only in the Rails app. > > Any thoughts on doing this? > Clint > > On 3/21/06, Peter T Bosse II < ptb@eliving.us> wrote: If you''re > trying to get lighttpd running so you can serve your rails > app, then cd to your rails application directory, then run: > > script/server -d > > If you want to run in production mode, edit your config/ > environment.rb file and change "development" to "production". > > The lighttpd.conf file should exist in your config directory. If it > doesn''t exist there, running script/server will copy a default config > file from your rails install. > > If script/server runs WEBrick instead of lighttpd, then your path > isn''t set up correctly. If you do a `echo $PATH` you should see /usr/ > local/sbin in there somewhere. If not edit your ~/.bash_profile or / > etc/profile to add it. > > - Peter > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2392 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060323/74c4963e/smime.bin
Perfect! I looked through Hivelogic and never saw this. Thanks for the link. Clint -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060323/15d447ad/attachment.html