Last week I asked for help on configuring Windows XP/Rails and Apache HTTPD server, and got little help. Below are all the steps I took too finally get all things working as they should: OS: Windows XP Home Edition Version 2002 Service Pack 1 MySQL: Not really relevant, but here it is anyway: MySQL Server 4.1, MySQL Query Browser 1.1, and MySQL Administrator 1.0 FastCGI Downloaded and installed mod_fastcgi.dll Win32 version 2.4.0 from www.fastcgi.com, then copied it to C:\Program Files\Apache Group\Apache2\modules. Apache setup: Installed apache_2.0.53-win32-x86-no_ssl.msi. Made a copy of httpd.conf (got tired of reinstalling it) and renamed httpd.default.conf to something other than *.conf. Modified/added the following to httpd.conf:: -- uncommented LoadModule rewrite_module modules/mod_rewrite.so -- Added LoadModule fastcgi_module modules/mod_fastcgi.dll <== note ".dll" not ".so" -- Added: <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi FastCgiConfig -maxClassProcesses 3 -startDelay 30 <== Thanks Eduardo Manso, Paul Nicholls and Ramin for an excellent thread </IfModule> <VirtualHost *:80> ServerName [server name] DocumentRoot [drive:\path\to\app]\public ErrorLog [drive:\path\to\app]\log\server.log <Directory [drive:\path\to\app]\public> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny </Directory> </VirtualHost> This came from the excellent but outdated example video on Ruby on Rails web site. Biggest thing that whacked me here was the direction of the slashes - I work with Unix at work and had flipped my slashes backwards. Big DUH factor here but Windows [''\''], Unix/Linux [''/''] Added to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\host file: 127.0.0.1 [name of server] Rails version 0.10.1 (I think, couldn''t find how to get the version and too tired to search) .htaccess:: modifed "RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]" to "RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]" dispatch.fcgi:: modified first list line from "#!c:/ruby/bin/ruby.exe" to "#!c:/ruby/bin/rubyw.exe" That''s it. I used the tutorial "Four Days on Rails" (excellent tutorial but needs to be updated) and created the app Todo. Page load times went from more than 15 seconds, to just milliseconds. Many of the references in the examples and tutorials on the Ruby on Rails website are also out of date, and threw me off, and there is nothing on the site that collects the above information in one place, for each OS Rails and Apache are installed on. Is this not an acceptable thing to do? I''m still not able to get the ToDo app to load (by going to http://todo vs. http://todo/items/list) when I make the recommended changes at the end of the tutorial "Four Days on Rails" and would appreciate some help on that. I hope this helps someone else who''s having problems getting FastCGI to work with Apache and Rails on Windows XP. Brian Anderson
What about webrick? See if that works. I honestly don''t know why you guys make your life so much harder then it has to be. Installing apache, especially on windows is *hard* and only comes with disadvantages to using ruby''s build in webserver. On Apr 11, 2005 12:35 AM, Best Family <briander43-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:> Last week I asked for help on configuring Windows XP/Rails and Apache > HTTPD server, and got little help. Below are all the steps I took too > finally get all things working as they should: > > OS: > Windows XP Home Edition Version 2002 Service Pack 1 > > MySQL: > Not really relevant, but here it is anyway: MySQL Server 4.1, MySQL > Query Browser 1.1, and MySQL Administrator 1.0 > > FastCGI > Downloaded and installed mod_fastcgi.dll Win32 version 2.4.0 from > www.fastcgi.com, then copied it to C:\Program Files\Apache > Group\Apache2\modules. > > Apache setup: > Installed apache_2.0.53-win32-x86-no_ssl.msi. > Made a copy of httpd.conf (got tired of reinstalling it) and renamed > httpd.default.conf to something other than *.conf. > Modified/added the following to httpd.conf:: > -- uncommented LoadModule rewrite_module modules/mod_rewrite.so > -- Added LoadModule fastcgi_module modules/mod_fastcgi.dll <== note > ".dll" not ".so" > -- Added: > <IfModule mod_fastcgi.c> > AddHandler fastcgi-script .fcgi > FastCgiConfig -maxClassProcesses 3 -startDelay 30 <== Thanks > Eduardo Manso, Paul Nicholls and Ramin for an excellent thread > </IfModule> > > <VirtualHost *:80> > ServerName [server name] > DocumentRoot [drive:\path\to\app]\public > ErrorLog [drive:\path\to\app]\log\server.log > > <Directory [drive:\path\to\app]\public> > Options ExecCGI FollowSymLinks > AllowOverride all > Allow from all > Order allow,deny > </Directory> > </VirtualHost> > This came from the excellent but outdated example video on Ruby on Rails > web site. Biggest thing that whacked me here was the direction of the > slashes - I work with Unix at work and had flipped my slashes > backwards. Big DUH factor here but Windows [''\''], Unix/Linux [''/''] > > Added to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\host file: 127.0.0.1 [name of > server] > > Rails version 0.10.1 (I think, couldn''t find how to get the version and > too tired to search) > .htaccess:: modifed "RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]" to > "RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]" > dispatch.fcgi:: modified first list line from "#!c:/ruby/bin/ruby.exe" > to "#!c:/ruby/bin/rubyw.exe" > > That''s it. I used the tutorial "Four Days on Rails" (excellent tutorial > but needs to be updated) and created the app Todo. Page load times went > from more than 15 seconds, to just milliseconds. > > Many of the references in the examples and tutorials on the Ruby on > Rails website are also out of date, and threw me off, and there is > nothing on the site that collects the above information in one place, > for each OS Rails and Apache are installed on. Is this not an > acceptable thing to do? > > I''m still not able to get the ToDo app to load (by going to http://todo > vs. http://todo/items/list) when I make the recommended changes at the > end of the tutorial "Four Days on Rails" and would appreciate some help > on that. > > I hope this helps someone else who''s having problems getting FastCGI to > work with Apache and Rails on Windows XP. > > Brian Anderson > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi http://www.snowdevil.ca - Snowboards that don''t suck http://www.hieraki.org - Open source book authoring http://blog.leetsoft.com - Technical weblog
Actually, installing XAMPP-Lite is extremely easy. I had it loaded for svn anyway, gave it a shot, and it worked with no hassles. I was able to get Hieraki working with MS-SQL right away. Webrick has caused problems for me. I''ve noticed some kind of memory leak where Ruby eats up 200MB of memory and Webrick slows to a crawl. On 4/11/05, Tobias Luetke <tobias.luetke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What about webrick? > > See if that works. > > I honestly don''t know why you guys make your life so much harder then > it has to be. > Installing apache, especially on windows is *hard* and only comes with > disadvantages to using ruby''s build in webserver. > > On Apr 11, 2005 12:35 AM, Best Family <briander43-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: > > Last week I asked for help on configuring Windows XP/Rails and Apache > > HTTPD server, and got little help. Below are all the steps I took too > > finally get all things working as they should: > > > > OS: > > Windows XP Home Edition Version 2002 Service Pack 1 > > > > MySQL: > > Not really relevant, but here it is anyway: MySQL Server 4.1, MySQL > > Query Browser 1.1, and MySQL Administrator 1.0 > > > > FastCGI > > Downloaded and installed mod_fastcgi.dll Win32 version 2.4.0 from > > www.fastcgi.com, then copied it to C:\Program Files\Apache > > Group\Apache2\modules. > > > > Apache setup: > > Installed apache_2.0.53-win32-x86-no_ssl.msi. > > Made a copy of httpd.conf (got tired of reinstalling it) and renamed > > httpd.default.conf to something other than *.conf. > > Modified/added the following to httpd.conf:: > > -- uncommented LoadModule rewrite_module modules/mod_rewrite.so > > -- Added LoadModule fastcgi_module modules/mod_fastcgi.dll <== note > > ".dll" not ".so" > > -- Added: > > <IfModule mod_fastcgi.c> > > AddHandler fastcgi-script .fcgi > > FastCgiConfig -maxClassProcesses 3 -startDelay 30 <== Thanks > > Eduardo Manso, Paul Nicholls and Ramin for an excellent thread > > </IfModule> > > > > <VirtualHost *:80> > > ServerName [server name] > > DocumentRoot [drive:\path\to\app]\public > > ErrorLog [drive:\path\to\app]\log\server.log > > > > <Directory [drive:\path\to\app]\public> > > Options ExecCGI FollowSymLinks > > AllowOverride all > > Allow from all > > Order allow,deny > > </Directory> > > </VirtualHost> > > This came from the excellent but outdated example video on Ruby on Rails > > web site. Biggest thing that whacked me here was the direction of the > > slashes - I work with Unix at work and had flipped my slashes > > backwards. Big DUH factor here but Windows [''\''], Unix/Linux [''/''] > > > > Added to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\host file: 127.0.0.1 [name of > > server] > > > > Rails version 0.10.1 (I think, couldn''t find how to get the version and > > too tired to search) > > .htaccess:: modifed "RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]" to > > "RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]" > > dispatch.fcgi:: modified first list line from "#!c:/ruby/bin/ruby.exe" > > to "#!c:/ruby/bin/rubyw.exe" > > > > That''s it. I used the tutorial "Four Days on Rails" (excellent tutorial > > but needs to be updated) and created the app Todo. Page load times went > > from more than 15 seconds, to just milliseconds. > > > > Many of the references in the examples and tutorials on the Ruby on > > Rails website are also out of date, and threw me off, and there is > > nothing on the site that collects the above information in one place, > > for each OS Rails and Apache are installed on. Is this not an > > acceptable thing to do? > > > > I''m still not able to get the ToDo app to load (by going to http://todo > > vs. http://todo/items/list) when I make the recommended changes at the > > end of the tutorial "Four Days on Rails" and would appreciate some help > > on that. > > > > I hope this helps someone else who''s having problems getting FastCGI to > > work with Apache and Rails on Windows XP. > > > > Brian Anderson > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don''t suck > http://www.hieraki.org - Open source book authoring > http://blog.leetsoft.com - Technical weblog > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- rick http://techno-weenie.net
THe reason I, and most other people, do install Apache is because we are trying to have the same development environment as our production env. No point in developing in Webrick or any other web server if your host or your production server will be using Apache. Apache isn''t really hard to setup on Windows, its the fastcgi module that causes some problems. On Apr 11, 2005 9:58 AM, Tobias Luetke <tobias.luetke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > What about webrick? > > See if that works. > > I honestly don''t know why you guys make your life so much harder then > it has to be. > Installing apache, especially on windows is *hard* and only comes with > disadvantages to using ruby''s build in webserver. > > On Apr 11, 2005 12:35 AM, Best Family <briander43-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: > > Last week I asked for help on configuring Windows XP/Rails and Apache > > HTTPD server, and got little help. Below are all the steps I took too > > finally get all things working as they should: > > > > OS: > > Windows XP Home Edition Version 2002 Service Pack 1 > > > > MySQL: > > Not really relevant, but here it is anyway: MySQL Server 4.1, MySQL > > Query Browser 1.1, and MySQL Administrator 1.0 > > > > FastCGI > > Downloaded and installed mod_fastcgi.dll Win32 version 2.4.0 from > > www.fastcgi.com <http://www.fastcgi.com>, then copied it to C:\Program > Files\Apache > > Group\Apache2\modules. > > > > Apache setup: > > Installed apache_2.0.53-win32-x86-no_ssl.msi. > > Made a copy of httpd.conf (got tired of reinstalling it) and renamed > > httpd.default.conf to something other than *.conf. > > Modified/added the following to httpd.conf:: > > -- uncommented LoadModule rewrite_module modules/mod_rewrite.so > > -- Added LoadModule fastcgi_module modules/mod_fastcgi.dll <== note > > ".dll" not ".so" > > -- Added: > > <IfModule mod_fastcgi.c> > > AddHandler fastcgi-script .fcgi > > FastCgiConfig -maxClassProcesses 3 -startDelay 30 <== Thanks > > Eduardo Manso, Paul Nicholls and Ramin for an excellent thread > > </IfModule> > > > > <VirtualHost *:80> > > ServerName [server name] > > DocumentRoot [drive:\path\to\app]\public > > ErrorLog [drive:\path\to\app]\log\server.log > > > > <Directory [drive:\path\to\app]\public> > > Options ExecCGI FollowSymLinks > > AllowOverride all > > Allow from all > > Order allow,deny > > </Directory> > > </VirtualHost> > > This came from the excellent but outdated example video on Ruby on Rails > > web site. Biggest thing that whacked me here was the direction of the > > slashes - I work with Unix at work and had flipped my slashes > > backwards. Big DUH factor here but Windows [''\''], Unix/Linux [''/''] > > > > Added to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\host file: 127.0.0.1<http://127.0.0.1>[name of > > server] > > > > Rails version 0.10.1 (I think, couldn''t find how to get the version and > > too tired to search) > > .htaccess:: modifed "RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]" to > > "RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]" > > dispatch.fcgi:: modified first list line from "#!c:/ruby/bin/ruby.exe" > > to "#!c:/ruby/bin/rubyw.exe" > > > > That''s it. I used the tutorial "Four Days on Rails" (excellent tutorial > > but needs to be updated) and created the app Todo. Page load times went > > from more than 15 seconds, to just milliseconds. > > > > Many of the references in the examples and tutorials on the Ruby on > > Rails website are also out of date, and threw me off, and there is > > nothing on the site that collects the above information in one place, > > for each OS Rails and Apache are installed on. Is this not an > > acceptable thing to do? > > > > I''m still not able to get the ToDo app to load (by going to http://todo > > vs. http://todo/items/list) when I make the recommended changes at the > > end of the tutorial "Four Days on Rails" and would appreciate some help > > on that. > > > > I hope this helps someone else who''s having problems getting FastCGI to > > work with Apache and Rails on Windows XP. > > > > Brian Anderson > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don''t suck > http://www.hieraki.org - Open source book authoring > http://blog.leetsoft.com - Technical weblog > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Ramin wrote:> THe reason I, and most other people, do install Apache is because we > are trying to have the same development environment as our production > env. No point in developing in Webrick or any other web server if your > host or your production server will be using Apache. Apache isn''t > really hard to setup on Windows, its the fastcgi module that causes > some problems.So you are saying your production environment is Apache running on Windows XP? Seriously though, Apache is *just* a web server. Rails is a ruby application, not an Apache application. Using built-in webricks is a lot simpler than setting up Apache just to see if your ruby (rails) application works. Well, unless of course, your rails application depends on Apache for one reason or another. That is in doubt though since you are using Apache as just a CGI launcher. - Adam
I have a real problem for using Webrick for anything other than testing purpose. When using it with rails, a DB connection leak occurs. By looking at the code I have seen that this happens because rails creates one connection for each Thread. Webrick seems to create a new thread for each request (except when keep alive is issued by the client). Has anybody overcome this problem ? Of course, this problem disappears when using CGI/FastCGI. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Rick Olson Sent: Monday, April 11, 2005 4:10 PM To: Tobias Luetke; rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Windows XP/Rails/Apache Config setup Actually, installing XAMPP-Lite is extremely easy. I had it loaded for svn anyway, gave it a shot, and it worked with no hassles. I was able to get Hieraki working with MS-SQL right away. Webrick has caused problems for me. I''ve noticed some kind of memory leak where Ruby eats up 200MB of memory and Webrick slows to a crawl. On 4/11/05, Tobias Luetke <tobias.luetke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What about webrick? > > See if that works. > > I honestly don''t know why you guys make your life so much harder then > it has to be. Installing apache, especially on windows is *hard* and > only comes with disadvantages to using ruby''s build in webserver. > > On Apr 11, 2005 12:35 AM, Best Family <briander43-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: > > Last week I asked for help on configuring Windows XP/Rails and > > Apache HTTPD server, and got little help. Below are all the steps I> > took too finally get all things working as they should: > > > > OS: > > Windows XP Home Edition Version 2002 Service Pack 1 > > > > MySQL: > > Not really relevant, but here it is anyway: MySQL Server 4.1, MySQL > > Query Browser 1.1, and MySQL Administrator 1.0 > > > > FastCGI > > Downloaded and installed mod_fastcgi.dll Win32 version 2.4.0 from > > www.fastcgi.com, then copied it to C:\Program Files\Apache > > Group\Apache2\modules. > > > > Apache setup: > > Installed apache_2.0.53-win32-x86-no_ssl.msi. > > Made a copy of httpd.conf (got tired of reinstalling it) and renamed> > httpd.default.conf to something other than *.conf. Modified/added > > the following to httpd.conf:: > > -- uncommented LoadModule rewrite_module modules/mod_rewrite.so > > -- Added LoadModule fastcgi_module modules/mod_fastcgi.dll <== note> > ".dll" not ".so" > > -- Added: > > <IfModule mod_fastcgi.c> > > AddHandler fastcgi-script .fcgi > > FastCgiConfig -maxClassProcesses 3 -startDelay 30 <== Thanks > > Eduardo Manso, Paul Nicholls and Ramin for an excellent thread > > </IfModule> > > > > <VirtualHost *:80> > > ServerName [server name] > > DocumentRoot [drive:\path\to\app]\public > > ErrorLog [drive:\path\to\app]\log\server.log > > > > <Directory [drive:\path\to\app]\public> > > Options ExecCGI FollowSymLinks > > AllowOverride all > > Allow from all > > Order allow,deny > > </Directory> > > </VirtualHost> > > This came from the excellent but outdated example video on Ruby on > > Rails web site. Biggest thing that whacked me here was the > > direction of the slashes - I work with Unix at work and had flipped > > my slashes backwards. Big DUH factor here but Windows [''\''], > > Unix/Linux [''/''] > > > > Added to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\host file: 127.0.0.1 [name > > of server] > > > > Rails version 0.10.1 (I think, couldn''t find how to get the version > > and too tired to search) > > .htaccess:: modifed "RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]" to> > "RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]" > > dispatch.fcgi:: modified first list line from > > "#!c:/ruby/bin/ruby.exe" to "#!c:/ruby/bin/rubyw.exe" > > > > That''s it. I used the tutorial "Four Days on Rails" (excellent > > tutorial but needs to be updated) and created the app Todo. Page > > load times went from more than 15 seconds, to just milliseconds. > > > > Many of the references in the examples and tutorials on the Ruby on > > Rails website are also out of date, and threw me off, and there is > > nothing on the site that collects the above information in one > > place, for each OS Rails and Apache are installed on. Is this not > > an acceptable thing to do? > > > > I''m still not able to get the ToDo app to load (by going to > > http://todo vs. http://todo/items/list) when I make the recommended > > changes at the end of the tutorial "Four Days on Rails" and would > > appreciate some help on that. > > > > I hope this helps someone else who''s having problems getting FastCGI> > to work with Apache and Rails on Windows XP. > > > > Brian Anderson > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Tobi > http://www.snowdevil.ca - Snowboards that don''t suck > http://www.hieraki.org - Open source book authoring > http://blog.leetsoft.com - Technical weblog > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- rick http://techno-weenie.net _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi, take a look at http://wiki.rubyonrails.com/rails/show/HowtoConfigureTheDefaultPageForYourRailsApp i think there you''ll find some ''light''... Regards, Eduardo. Best Family wrote:> . > . > . > > I''m still not able to get the ToDo app to load (by going to http://todo > vs. http://todo/items/list) when I make the recommended changes at the > end of the tutorial "Four Days on Rails" and would appreciate some help > on that. > > I hope this helps someone else who''s having problems getting FastCGI to > work with Apache and Rails on Windows XP. > > Brian Anderson > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Faissolle, Julien wrote:>I have a real problem for using Webrick for anything other than testing >purpose. When using it with rails, a DB connection leak occurs. By >looking at the code I have seen that this happens because rails creates >one connection for each Thread. Webrick seems to create a new thread for >each request (except when keep alive is issued by the client). Has >anybody overcome this problem ? > >Well, not a problem. Webricks seems to open up to 8 or 9 connections, and then closes them in turn. I think this might have to do with ruby cleaning up threads, but I''m not sure. But this is not a major problem.>Of course, this problem disappears when using CGI/FastCGI. > >Probably since CGI would kill the process so connection would be closed. FastCGI probably the thing, as it does a fork. - Adam
Hi, Best Family wrote:> Last week I asked for help on configuring Windows XP/Rails and Apache > HTTPD server, and got little help. Below are all the steps I took too > finally get all things working as they should: > > . > . > . > > I''m still not able to get the ToDo app to load (by going to http://todo > vs. http://todo/items/list) when I make the recommended changes at the > end of the tutorial "Four Days on Rails" and would appreciate some help > on that.take a look at http://wiki.rubyonrails.com/rails/show/HowtoConfigureTheDefaultPageForYourRailsApp i think there you''ll find some ''light''... Regards, Eduardo.
Eduardo Manso <emneto@...> writes:> take a look at > > http://.../HowtoConfigureTheDefaultPageForYourRailsApp > > i think there you''ll find some ''light''... > > Regards, > Eduardo.Thanks! I''ll check it out.
Write back if you want to start a RoR group in NYC. I know you''re out there... Of course, there might be one already I don''t know about. I do know about the NYC Ruby group, but that''s not really for Rails. I would like to start a group that deals directly with Web dev. Matt
oooh.. me. I live in NYC (well, close enough - I''m in Glen Cove, LI). I''d be interested in a group =] On Apr 11, 2005 11:43 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote:> > Write back if you want to start a RoR group in NYC. I know you''re out > there... > > Of course, there might be one already I don''t know about. I do know > about the NYC Ruby group, but that''s not really for Rails. I would like > to start a group that deals directly with Web dev. > > Matt > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Well, perhaps I should explain better. The rails code (in abstract_adapter.rb) creates one database connection for each thread but never closes them explicitely. As Webrick renews its running threads, more and more database connections are created. As a result, at least with the OCI adapter, database connections stay pending (I can see them by using the db tools). They are not closed as a result of thread termination. They are only closed when I stop the process. It works with CGI because the ruby process dies after each request. On FastCGI, there is only one thread by ruby process, so there is exaclty one connection by process. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Adam M. Sent: Monday, April 11, 2005 6:00 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Windows XP/Rails/Apache Config setup Faissolle, Julien wrote:>I have a real problem for using Webrick for anything other than testing>purpose. When using it with rails, a DB connection leak occurs. By >looking at the code I have seen that this happens because rails creates>one connection for each Thread. Webrick seems to create a new thread >for each request (except when keep alive is issued by the client). Has >anybody overcome this problem ? > >Well, not a problem. Webricks seems to open up to 8 or 9 connections, and then closes them in turn. I think this might have to do with ruby cleaning up threads, but I''m not sure. But this is not a major problem.>Of course, this problem disappears when using CGI/FastCGI. > >Probably since CGI would kill the process so connection would be closed. FastCGI probably the thing, as it does a fork. - Adam _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
You might still want to make an announcement on ruby-talk and at the NYC Ruby group. They''ve done a lot of web based stuff (including narf), and would probably be interested in doing RoR stuff as well. -pate On Apr 11, 2005 9:43 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote:> Write back if you want to start a RoR group in NYC. I know you''re out > there... > > Of course, there might be one already I don''t know about. I do know > about the NYC Ruby group, but that''s not really for Rails. I would like > to start a group that deals directly with Web dev. > > Matt > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith)
Hi Pat (and Paul, from earlier reply), Actually I did go to last month''s Ruby Group (If you guys are watching I was the newbie). It was quite helpful, and I even came out with a free ''Learn Ruby in 21 days'' (thanks Francis), but my impression was that it was more oriented toward the language itself than to Rails, esp. as it''s been around longer than Rails has existed. We talked about Rails a bit, but I don''t want to inadvertantly steer those meetings into discussions just about Rails. So I will continue to attend them, but if there is enough interest in NYC I''d like to start one that focuses on Rails itself. There are plenty of developers here and I''d wager the interest is only going to grow. Matt pat eyler wrote:> You might still want to make an announcement on ruby-talk and at the > NYC Ruby group. They''ve done a lot of web based stuff (including > narf), and would probably be interested in doing RoR stuff as well. > > -pate > > On Apr 11, 2005 9:43 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote: > >>Write back if you want to start a RoR group in NYC. I know you''re out >>there... >> >>Of course, there might be one already I don''t know about. I do know >>about the NYC Ruby group, but that''s not really for Rails. I would like >>to start a group that deals directly with Web dev. >> >>Matt >> >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails >> > > >
On Apr 12, 2005 3:40 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote:> Hi Pat (and Paul, from earlier reply), > > Actually I did go to last month''s Ruby Group (If you guys are watching I > was the newbie). It was quite helpful, and I even came out with a free > ''Learn Ruby in 21 days'' (thanks Francis), but my impression was that it > was more oriented toward the language itself than to Rails, esp. as it''s > been around longer than Rails has existed. We talked about Rails a bit, > but I don''t want to inadvertantly steer those meetings into discussions > just about Rails. So I will continue to attend them, but if there is > enough interest in NYC I''d like to start one that focuses on Rails > itself. There are plenty of developers here and I''d wager the interest > is only going to grow.Actually I''m no where near NYC, so I didn''t see you at the last meeting. ;^) I am concerned though that by starting Rails specific groups, we fragment a community that is still fairly young. I think having a RoR group is a great idea, but I''d rather see it run in cooperation with an NYC.rb (or whatever). I think the new Rails folks can learn a lot from experienced Rubyists, and the ''old timers'' can certainly get a boost from the new folks that RoR will bring in. just my $0.02> > Matt >-- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith)
I''m having trouble setting up rails - it appears that the values from my database.yml file are not being loaded. The file contains no tabs or carriage returns and was hand crafted in vim. The error I''m getting is this: Access denied for user: ''root@localhost'' (Using password: NO) The especially odd thing about that error is that I''m NOT using ''root'' in database.yml, and I AM using a password. database.yml follows, w/ passwords asteriked out: development: adapter: mysql database: feeds_tags_friends host: localhost username: jnewland password: ******* test: adapter: mysql database: feeds_tags_friends_test host: localhost username: jnewland password: ******* production: adapter: mysql database: feeds_tags_friends_prod host: localhost username: jnewland password: ******* I''m running rails 0.11.1, ruby 1.8.2, and mysql 4.0.22 on gentoo linux (kernel version 2.6.5). Anyone have any suggestions? Regards- Jesse Newland
Pat, I fully agree about learning from the ''elders'', and that cooperation and cross-talk should be encouraged from the start. I don''t think fragmenting interests is too much of a concern at this point, though, as anyone coding for RoR is likely to be pretty interested in Ruby as a language anyway. I certainly am. In fact I plan to encourage anyone coming to the RoR to go to the NYC.rb as well. Depending on the size of the interest (I have 4 ppl so far), maybe we''ll ask the NYC.rb leader (Francis I know you''re on ruby-talk) to set aside some time for each meeting just to focus on RoR. My rationale for wanting to start a Rails-specific group is that the ruby-nyc group is for the language, and those members have interests that don''t necessarily deal directly with the web. While they would probably be interested to hear new members talk about Rails (and they were when I did so), I wouldn''t want to alienate them by hogging the discussion about the Web. Since this is going to the Ruby-talk list... any Ruby folks there interested in a NYC meetup? Matt pat eyler wrote:> On Apr 12, 2005 3:40 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote: > >>Hi Pat (and Paul, from earlier reply), >> >>Actually I did go to last month''s Ruby Group (If you guys are watching I >>was the newbie). It was quite helpful, and I even came out with a free >>''Learn Ruby in 21 days'' (thanks Francis), but my impression was that it >>was more oriented toward the language itself than to Rails, esp. as it''s >>been around longer than Rails has existed. We talked about Rails a bit, >>but I don''t want to inadvertantly steer those meetings into discussions >>just about Rails. So I will continue to attend them, but if there is >>enough interest in NYC I''d like to start one that focuses on Rails >>itself. There are plenty of developers here and I''d wager the interest >>is only going to grow. > > > > Actually I''m no where near NYC, so I didn''t see you at the last meeting. ;^) > > I am concerned though that by starting Rails specific groups, we fragment a > community that is still fairly young. I think having a RoR group is a great > idea, but I''d rather see it run in cooperation with an NYC.rb (or whatever). I > think the new Rails folks can learn a lot from experienced Rubyists, and the > ''old timers'' can certainly get a boost from the new folks that RoR will bring > in. > > just my $0.02 > > > >>Matt >> > >
On Apr 12, 2005, at 3:02 PM, jesse newland wrote:> I''m having trouble setting up rails - it appears that the values from > my database.yml file are not being loaded. The file contains no tabs > or carriage returns and was hand crafted in vim. > > The error I''m getting is this: > > Access denied for user: ''root@localhost'' (Using password: NO) > > The especially odd thing about that error is that I''m NOT using ''root'' > in database.yml, and I AM using a password. database.yml follows, w/ > passwords asteriked out:Did you try restarting your web server? I think the database.yml file is loaded at startup when using WEBrick and fcgi.
I''ve created a new Yahoo Group for RoR in NYC called rubyonrails-nyc http://groups.yahoo.com/group/rubyonrails-nyc/ I encourage anyone with an interest in Ruby AND/OR RoR to join. I''ll work out the details of setting up a meetup soon. Thanks, Matt Matt Pelletier wrote:> Pat, > > I fully agree about learning from the ''elders'', and that cooperation and > cross-talk should be encouraged from the start. I don''t think > fragmenting interests is too much of a concern at this point, though, as > anyone coding for RoR is likely to be pretty interested in Ruby as a > language anyway. I certainly am. In fact I plan to encourage anyone > coming to the RoR to go to the NYC.rb as well. Depending on the size of > the interest (I have 4 ppl so far), maybe we''ll ask the NYC.rb leader > (Francis I know you''re on ruby-talk) to set aside some time for each > meeting just to focus on RoR. > > My rationale for wanting to start a Rails-specific group is that the > ruby-nyc group is for the language, and those members have interests > that don''t necessarily deal directly with the web. While they would > probably be interested to hear new members talk about Rails (and they > were when I did so), I wouldn''t want to alienate them by hogging the > discussion about the Web. > > Since this is going to the Ruby-talk list... any Ruby folks there > interested in a NYC meetup? > > Matt > > pat eyler wrote: > >> On Apr 12, 2005 3:40 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote: >> >>> Hi Pat (and Paul, from earlier reply), >>> >>> Actually I did go to last month''s Ruby Group (If you guys are watching I >>> was the newbie). It was quite helpful, and I even came out with a free >>> ''Learn Ruby in 21 days'' (thanks Francis), but my impression was that it >>> was more oriented toward the language itself than to Rails, esp. as it''s >>> been around longer than Rails has existed. We talked about Rails a bit, >>> but I don''t want to inadvertantly steer those meetings into discussions >>> just about Rails. So I will continue to attend them, but if there is >>> enough interest in NYC I''d like to start one that focuses on Rails >>> itself. There are plenty of developers here and I''d wager the interest >>> is only going to grow. >> >> >> >> >> Actually I''m no where near NYC, so I didn''t see you at the last >> meeting. ;^) >> >> I am concerned though that by starting Rails specific groups, we >> fragment a community that is still fairly young. I think having a RoR >> group is a great idea, but I''d rather see it run in cooperation with >> an NYC.rb (or whatever). I >> think the new Rails folks can learn a lot from experienced Rubyists, >> and the >> ''old timers'' can certainly get a boost from the new folks that RoR >> will bring >> in. >> >> just my $0.02 >> >> >> >>> Matt >>> >> >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
I live in NY (Long Island) and I''m interested in Ruby/RoR meetup. Where do I sign up? On 4/12/05, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> wrote:> > Pat, > > I fully agree about learning from the ''elders'', and that cooperation and > cross-talk should be encouraged from the start. I don''t think > fragmenting interests is too much of a concern at this point, though, as > anyone coding for RoR is likely to be pretty interested in Ruby as a > language anyway. I certainly am. In fact I plan to encourage anyone > coming to the RoR to go to the NYC.rb as well. Depending on the size of > the interest (I have 4 ppl so far), maybe we''ll ask the NYC.rb leader > (Francis I know you''re on ruby-talk) to set aside some time for each > meeting just to focus on RoR. > > My rationale for wanting to start a Rails-specific group is that the > ruby-nyc group is for the language, and those members have interests > that don''t necessarily deal directly with the web. While they would > probably be interested to hear new members talk about Rails (and they > were when I did so), I wouldn''t want to alienate them by hogging the > discussion about the Web. > > Since this is going to the Ruby-talk list... any Ruby folks there > interested in a NYC meetup? > > Matt > > pat eyler wrote: > > On Apr 12, 2005 3:40 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org> > wrote: > > > >>Hi Pat (and Paul, from earlier reply), > >> > >>Actually I did go to last month''s Ruby Group (If you guys are watching I > >>was the newbie). It was quite helpful, and I even came out with a free > >>''Learn Ruby in 21 days'' (thanks Francis), but my impression was that it > >>was more oriented toward the language itself than to Rails, esp. as it''s > >>been around longer than Rails has existed. We talked about Rails a bit, > >>but I don''t want to inadvertantly steer those meetings into discussions > >>just about Rails. So I will continue to attend them, but if there is > >>enough interest in NYC I''d like to start one that focuses on Rails > >>itself. There are plenty of developers here and I''d wager the interest > >>is only going to grow. > > > > > > > > Actually I''m no where near NYC, so I didn''t see you at the last meeting. > ;^) > > > > I am concerned though that by starting Rails specific groups, we > fragment a > > community that is still fairly young. I think having a RoR group is a > great > > idea, but I''d rather see it run in cooperation with an NYC.rb (or > whatever). I > > think the new Rails folks can learn a lot from experienced Rubyists, and > the > > ''old timers'' can certainly get a boost from the new folks that RoR will > bring > > in. > > > > just my $0.02 > > > > > > > >>Matt > >> > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
You should sign up for both NYC groups. First, Ruby-NYC, which covers any ruby-related discussions. This has been around awhile. http://groups.yahoo.com/group/ruby-nyc/ Then, RubyOnRails-NYC, which I just started today. http://groups.yahoo.com/group/rubyonrails-nyc/ Matt Ramin wrote:> I live in NY (Long Island) and I''m interested in Ruby/RoR meetup. Where > do I sign up? > > On 4/12/05, *Matt Pelletier* < pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org > <mailto:pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org>> wrote: > > Pat, > > I fully agree about learning from the ''elders'', and that cooperation > and > cross-talk should be encouraged from the start. I don''t think > fragmenting interests is too much of a concern at this point, though, as > anyone coding for RoR is likely to be pretty interested in Ruby as a > language anyway. I certainly am. In fact I plan to encourage anyone > coming to the RoR to go to the NYC.rb as well. Depending on the size of > the interest (I have 4 ppl so far), maybe we''ll ask the NYC.rb leader > (Francis I know you''re on ruby-talk) to set aside some time for each > meeting just to focus on RoR. > > My rationale for wanting to start a Rails-specific group is that the > ruby-nyc group is for the language, and those members have interests > that don''t necessarily deal directly with the web. While they would > probably be interested to hear new members talk about Rails (and they > were when I did so), I wouldn''t want to alienate them by hogging the > discussion about the Web. > > Since this is going to the Ruby-talk list... any Ruby folks there > interested in a NYC meetup? > > Matt > > pat eyler wrote: > > On Apr 12, 2005 3:40 PM, Matt Pelletier <pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org > <mailto:pelletierm-A1PILTyJ15gXhy9q4Lf3Ug@public.gmane.org>> wrote: > > > >>Hi Pat (and Paul, from earlier reply), > >> > >>Actually I did go to last month''s Ruby Group (If you guys are > watching I > >>was the newbie). It was quite helpful, and I even came out with a > free > >>''Learn Ruby in 21 days'' (thanks Francis), but my impression was > that it > >>was more oriented toward the language itself than to Rails, esp. > as it''s > >>been around longer than Rails has existed. We talked about Rails > a bit, > >>but I don''t want to inadvertantly steer those meetings into > discussions > >>just about Rails. So I will continue to attend them, but if there is > >>enough interest in NYC I''d like to start one that focuses on Rails > >>itself. There are plenty of developers here and I''d wager the > interest > >>is only going to grow. > > > > > > > > Actually I''m no where near NYC, so I didn''t see you at the last > meeting. ;^) > > > > I am concerned though that by starting Rails specific groups, we > fragment a > > community that is still fairly young. I think having a RoR group > is a great > > idea, but I''d rather see it run in cooperation with an NYC.rb (or > whatever). I > > think the new Rails folks can learn a lot from experienced > Rubyists, and the > > ''old timers'' can certainly get a boost from the new folks that > RoR will bring > > in. > > > > just my $0.02 > > > > > > > >>Matt > >> > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > - Ramin > http://www.getintothis.com/blog > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
* jesse newland <jnewland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [0435 07:35]:> I''m having trouble setting up rails - it appears that the values from > my database.yml file are not being loaded. The file contains no tabs > or carriage returns and was hand crafted in vim. > > The error I''m getting is this: > > Access denied for user: ''root@localhost'' (Using password: NO) > > The especially odd thing about that error is that I''m NOT using ''root'' > in database.yml, and I AM using a password. database.yml follows, w/ > passwords asteriked out: > > development: > adapter: mysql > database: feeds_tags_friends > host: localhost > username: jnewland > password: ******* > > test: > adapter: mysql > database: feeds_tags_friends_test > host: localhost > username: jnewland > password: ******* > > production: > adapter: mysql > database: feeds_tags_friends_prod > host: localhost > username: jnewland > password: ******* > > I''m running rails 0.11.1, ruby 1.8.2, and mysql 4.0.22 on gentoo linux > (kernel version 2.6.5). Anyone have any suggestions?check those lines begin with two spaces and not a tab. yaml doesn''t do tabs. -- ''That question was less stupid; though you asked it in a profoundly stupid way.'' -- Prof. Farnsworth Rasputin :: Jack of All Trades - Master of Nuns