From ken.barker at gmail.com Tue Oct 11 21:43:03 2005 From: ken.barker at gmail.com (Ken Barker) Date: Tue, 11 Oct 2005 21:43:03 -0400 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page Message-ID: Curt, This is really, really cool.... On hiccup for me though. All was well until I went to manage the cookbook application. The Start SCGI command gave the following output: D:\INSTAN~1\rails_apps\cookbook>..\..\ruby\bin\ruby.exe script\scgi_rails start -p 9999 -e production -D ERROR: Could not setup a SIGHUP handler. You won't be able to get status. Listening for connections on 127.0.0.1:9999 Surfing to www.mycookbook.com in my browser yielded an Apache Test page indicating that it is running correctly. No cookbook... Any ideas? WinXP Thanks. Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051011/a90e7002/attachment.htm From curt.hibbs at gmail.com Tue Oct 11 22:28:38 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Tue, 11 Oct 2005 21:28:38 -0500 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page In-Reply-To: References: Message-ID: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> Did you edit your HOSTS file and add the line: 127.0.0.1 www.mycookbook.com Is you browse configured to use a proxy server? If so, make sue you've got the checkbox checked to now use the proxy for local addresses (this is an IE setting). Or better yet, as an experiment set you internet connection temporarily to "direct connection" and then see if it works. Curt On 10/11/05, Ken Barker wrote: > > Curt, > > This is really, really cool.... > > On hiccup for me though. All was well until I went to manage the cookbook > application. The Start SCGI command gave the following output: > > > D:\INSTAN~1\rails_apps\cookbook>..\..\ruby\bin\ruby.exe script\scgi_rails > start -p 9999 -e production -D > ERROR: Could not setup a SIGHUP handler. You won't be able to get status. > Listening for connections on 127.0.0.1:9999 > > Surfing to www.mycookbook.com in my browser > yielded an Apache Test page indicating that it is running correctly. No > cookbook... > > Any ideas? > > WinXP > > Thanks. > > Ken > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051011/538c2f07/attachment.htm From ken.barker at gmail.com Tue Oct 11 22:40:58 2005 From: ken.barker at gmail.com (Ken Barker) Date: Tue, 11 Oct 2005 22:40:58 -0400 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page In-Reply-To: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> References: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> Message-ID: On 10/11/05, Curt Hibbs wrote: > > Did you edit your HOSTS file and add the line: > > 127.0.0.1 www.mycookbook.com Yes. Edited the file IRails opened for me. Is you browse configured to use a proxy server? If so, make sue you've got > the checkbox checked to now use the proxy for local addresses (this is an IE > setting). Or better yet, as an experiment set you internet connection > temporarily to "direct connection" and then see if it works. Direct connection already using FireFox. Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051011/332516f8/attachment.htm From curt.hibbs at gmail.com Tue Oct 11 23:09:06 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Tue, 11 Oct 2005 22:09:06 -0500 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page In-Reply-To: References: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> Message-ID: <31d15f490510112009p2c78618dx8df49c35fd163f7a@mail.gmail.com> On 10/11/05, Ken Barker wrote: > > On 10/11/05, Curt Hibbs wrote: > > > > Did you edit your HOSTS file and add the line: > > > > 127.0.0.1 www.mycookbook.com > > > Yes. Edited the file IRails opened for me. > > Is you browse configured to use a proxy server? If so, make sue you've got > > the checkbox checked to now use the proxy for local addresses (this is an IE > > setting). Or better yet, as an experiment set you internet connection > > temporarily to "direct connection" and then see if it works. > > > Direct connection already using FireFox. > Hmm... this is strange. The reason for using virtual hosts in the apache config file is so that you can ave multiple rails apps running at the same time. Let's try making the cookbook app be the one and only (i.e., the default) virtual host. Edit your apache config file (menu: Configure >> Apache). At the very end of the file you'll see two virtual host definitions. One for localhost and one for cookbook. Delete the one for localhost and save the file. Restart apache and try browing to: http://localhost/ or http://127.0.0.1/ Does that work? Curt PS What version of Windows are you using? I should have mentioned that this only works with Windows 2000 or newer. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051011/842e7107/attachment.htm From curt.hibbs at gmail.com Wed Oct 12 07:04:21 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Wed, 12 Oct 2005 06:04:21 -0500 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page In-Reply-To: <31d15f490510112009p2c78618dx8df49c35fd163f7a@mail.gmail.com> References: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> <31d15f490510112009p2c78618dx8df49c35fd163f7a@mail.gmail.com> Message-ID: <31d15f490510120404l14d680dfy2b32f8f7a19b0e90@mail.gmail.com> Ken, do you have Administrator priviledges on your machine? Not having them would prevent you from being able to save the HOSTS file and would explain you problem. Curt On 10/11/05, Curt Hibbs wrote: > > On 10/11/05, Ken Barker wrote: > > > > On 10/11/05, Curt Hibbs wrote: > > > > > > Did you edit your HOSTS file and add the line: > > > > > > 127.0.0.1 www.mycookbook.com > > > > > > Yes. Edited the file IRails opened for me. > > > > Is you browse configured to use a proxy server? If so, make sue you've > > > got the checkbox checked to now use the proxy for local addresses (this is > > > an IE setting). Or better yet, as an experiment set you internet connection > > > temporarily to "direct connection" and then see if it works. > > > > > > Direct connection already using FireFox. > > > > Hmm... this is strange. > > The reason for using virtual hosts in the apache config file is so that > you can ave multiple rails apps running at the same time. Let's try making > the cookbook app be the one and only (i.e., the default) virtual host. > > Edit your apache config file (menu: Configure >> Apache). At the very end > of the file you'll see two virtual host definitions. One for localhost and > one for cookbook. Delete the one for localhost and save the file. > > Restart apache and try browing to: > > http://localhost/ > > or > > http://127.0.0.1/ > > Does that work? > > Curt > > PS > What version of Windows are you using? I should have mentioned that this > only works with Windows 2000 or newer. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/eb66c3ee/attachment-0001.htm From ken.barker at gmail.com Wed Oct 12 07:53:54 2005 From: ken.barker at gmail.com (Ken Barker) Date: Wed, 12 Oct 2005 07:53:54 -0400 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page In-Reply-To: <31d15f490510120404l14d680dfy2b32f8f7a19b0e90@mail.gmail.com> References: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> <31d15f490510112009p2c78618dx8df49c35fd163f7a@mail.gmail.com> <31d15f490510120404l14d680dfy2b32f8f7a19b0e90@mail.gmail.com> Message-ID: Curt, I am on WinXP Pro with Administrator privileges... Will try the Apache config this evening when I get home. Thanks. Ken On 10/12/05, Curt Hibbs wrote: > > Ken, do you have Administrator priviledges on your machine? Not having > them would prevent you from being able to save the HOSTS file and would > explain you problem. > > Curt > > On 10/11/05, Curt Hibbs wrote: > > > > On 10/11/05, Ken Barker wrote: > > > > > > On 10/11/05, Curt Hibbs wrote: > > > > > > > > Did you edit your HOSTS file and add the line: > > > > > > > > 127.0.0.1 www.mycookbook.com > > > > > > > > > Yes. Edited the file IRails opened for me. > > > > > > Is you browse configured to use a proxy server? If so, make sue you've > > > > got the checkbox checked to now use the proxy for local addresses (this is > > > > an IE setting). Or better yet, as an experiment set you internet connection > > > > temporarily to "direct connection" and then see if it works. > > > > > > > > > Direct connection already using FireFox. > > > > > > > Hmm... this is strange. > > > > The reason for using virtual hosts in the apache config file is so that > > you can ave multiple rails apps running at the same time. Let's try making > > the cookbook app be the one and only (i.e., the default) virtual host. > > > > Edit your apache config file (menu: Configure >> Apache). At the very > > end of the file you'll see two virtual host definitions. One for localhost > > and one for cookbook. Delete the one for localhost and save the file. > > > > Restart apache and try browing to: > > > > http://localhost/ > > > > or > > > > http://127.0.0.1/ > > > > Does that work? > > > > Curt > > > > PS > > What version of Windows are you using? I should have mentioned that this > > only works with Windows 2000 or newer. > > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/12adcc2e/attachment.htm From rdifrango at captechventures.com Wed Oct 12 10:51:30 2005 From: rdifrango at captechventures.com (Ron DiFrango) Date: Wed, 12 Oct 2005 10:51:30 -0400 Subject: [Instantrails-users] Previously installed components? Message-ID: <2E2C1EF7A19F5344A3051E54CFA5ACFE01AAD7D4@email.captechventures.com> I would like to install instant rails to get hte apache/scgi setup, but I already have other pieces installed [Ruby itself & Rails]. My question is how does Instant rails handle this? Ron From curt.hibbs at gmail.com Wed Oct 12 10:56:46 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Wed, 12 Oct 2005 09:56:46 -0500 Subject: [Instantrails-users] Previously installed components? In-Reply-To: <2E2C1EF7A19F5344A3051E54CFA5ACFE01AAD7D4@email.captechventures.com> References: <2E2C1EF7A19F5344A3051E54CFA5ACFE01AAD7D4@email.captechventures.com> Message-ID: <31d15f490510120756p5589cb46y57a37fb79402568d@mail.gmail.com> On 10/12/05, Ron DiFrango wrote: > > I would like to install instant rails to get hte apache/scgi setup, but I > already have other pieces installed [Ruby itself & Rails]. My question is > how does Instant rails handle this? > Instant Rails is complete self-contained in its own directory tree and should not interfere with any existing Ruby or Rails installation. Anything you run within IR will use its private copy of Ruby and Rails. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/584c7dc2/attachment.htm From rdifrango at captechventures.com Wed Oct 12 10:59:24 2005 From: rdifrango at captechventures.com (Ron DiFrango) Date: Wed, 12 Oct 2005 10:59:24 -0400 Subject: [Instantrails-users] Previously installed components? Message-ID: <2E2C1EF7A19F5344A3051E54CFA5ACFE01AAD7D5@email.captechventures.com> Great News! Although, I may eliminate my other install and go with this one :-) -----Original Message----- From: Curt Hibbs [mailto:curt.hibbs at gmail.com] Sent: Wed 10/12/2005 10:56 AM To: instantrails-users at rubyforge.org Cc: Subject: Re: [Instantrails-users] Previously installed components? On 10/12/05, Ron DiFrango wrote: I would like to install instant rails to get hte apache/scgi setup, but I already have other pieces installed [Ruby itself & Rails]. My question is how does Instant rails handle this? Instant Rails is complete self-contained in its own directory tree and should not interfere with any existing Ruby or Rails installation. Anything you run within IR will use its private copy of Ruby and Rails. Curt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4446 bytes Desc: not available Url : http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/c8acd954/attachment.bin From smartgpx at gmail.com Wed Oct 12 11:18:15 2005 From: smartgpx at gmail.com (DeeJay) Date: Wed, 12 Oct 2005 16:18:15 +0100 Subject: [Instantrails-users] Conflict with Ruby OneClickInstaller ? Message-ID: <533048b70510120818w1c11ebfx@mail.gmail.com> InstantRails1.0pre1 Installed on WinXP-Pro SP2, on a machine that is part of a centrally-managed domain, running under a user account that does not have Admin rights. Ruby OneClickInstaller already installed on this machine under D:/Ruby/Win32Inst Unable to create a server for a new dummy Rails app. Steps taken are as follows - IR_Main/Rails Applications/Manage Rails Apps/Create New App then, in Command Prompt (console) window - rails_app> rails mynewapp (creates a mynewapp folder and populates it) rails_app> cd mynewapp rails_app> ruby script/server this step fails, as follows - I:\INSTAN~1\rails_apps\mynewapp>ruby script/server d:/ruby/win32inst/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `requi re__': No such file to load -- active_support (LoadError) from d:/ruby/win32inst/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb :18:in `require' from ./script/../config/environment.rb:50 from d:/ruby/win32inst/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb :18:in `require__' from d:/ruby/win32inst/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb :18:in `require' from script/server:42 (Note that the 'require' seems to be searching the Ruby_1CI hierarchy, rather than the one associated with InstantRails. There ARE instances of 'active_support, in the I:/InstantRails hierarchy.) DOS/Windows Environment is as follows - ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\xyz\Application Data CFSProfType=XP CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=CC-NT561 ComSpec=C:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=NO HOMEDRIVE=Z: HOMEPATH=\ HOMESHARE=\\cfs.camford.ac.uk\Root\Users\D\xyz HummPATH=C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\; LOGONSERVER=\\SPEARMINT NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=I:\INSTAN~1\rails_apps\ruby\bin;d:\ruby\win32inst\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;;y:\putty;Y:\Java Development Kit\Java SDK 1.5\bin;I:\INSTAN~1\ruby\bin;I:\INSTAN~1\Apache;I:\INSTAN~1\PHP PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.RB;.RBW PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 2, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0102 ProgramFiles=C:\Program Files PROMPT=$P$G RUBYOPT=rubygems SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Temp TMP=C:\Temp USERDNSDOMAIN=CFS.camford.AC.UK USERDOMAIN=CFS USERNAME=xyz USERPROFILE=C:\Documents and Settings\xyz windir=C:\WINDOWS I wonder if there is a Registry key from Ruby 1CI that is overriding these environment variables? This is provided as feedback to improve InstantRails, not as a desperate plea for assistance. David Roberts, Leicester, UK From ken.barker at gmail.com Wed Oct 12 14:37:36 2005 From: ken.barker at gmail.com (Ken Barker) Date: Wed, 12 Oct 2005 14:37:36 -0400 Subject: [Instantrails-users] Conflict with currently running MySQL instance Message-ID: Hey Curt, I tried Instant Rails 1.0 preview2 on my Win2K Pro laptop. Everything worked great with one exception. The Instant Rails MySQL conflicted with my currently running MySQL instance. I am sure this was a Port conflict. Two things: 1. The message that popped up stated that "Apache cannot be runned : another Web server use the Web port". The title of this message box was MySQL and the MySQL service indicator was still red. 2. Where/how do I define a different port for MySQL and what are the impacts on my rails apps? Thanks. Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/4affa7e9/attachment-0001.htm From curt.hibbs at gmail.com Wed Oct 12 15:01:05 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Wed, 12 Oct 2005 14:01:05 -0500 Subject: [Instantrails-users] Conflict with currently running MySQL instance In-Reply-To: References: Message-ID: <31d15f490510121201s5dbb7f11r2aec33a544eed191@mail.gmail.com> On 10/12/05, Ken Barker wrote: > > Hey Curt, > > I tried Instant Rails 1.0 preview2 on my Win2K Pro laptop. Everything > worked great with one exception. The Instant Rails MySQL conflicted with my > currently running MySQL instance. I am sure this was a Port conflict. > > Two things: > > 1. The message that popped up stated that "Apache cannot be runned : > another Web server use the Web port". The title of this message box was > MySQL and the MySQL service indicator was still red. Yuk! Bad error message! I need to go through all the error messages I inherited from EasyPHP and make sure there aren't any more like this! 2. Where/how do I define a different port for MySQL and what are the impacts > on my rails apps? Do you really want/need to be running more than one instance of MySQL? You could just continue to use the one you already have and not use the one in Instant Rails. To do that you would use the menu command "Configure >> Instant Rails" and then uncheck the box that labelled "Automatically start the servers when Instant Rails starts". Of course this will stop apache from automatically starting, too. You can manually start it by clicking on the Apaqche button and selecting "Start". Maybe in the next release I should have separate options for auto-starting apache and mysql. You could also move your MySQL data into the Instant Rails instance and just run that one. If you *really, really* want to run two instances of MySQL simultaneously, I'd need to do a little research to see what the implications would be. Obviously it'd have to run on a different port, and somehow you'd have to tell Rails about this. Unfortunately, between work and getting ready for RubyConf, I really don't have time to look into this right now. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/90ae2179/attachment.htm From ken.barker at gmail.com Wed Oct 12 15:43:11 2005 From: ken.barker at gmail.com (Ken Barker) Date: Wed, 12 Oct 2005 15:43:11 -0400 Subject: [Instantrails-users] Conflict with currently running MySQL instance In-Reply-To: <31d15f490510121201s5dbb7f11r2aec33a544eed191@mail.gmail.com> References: <31d15f490510121201s5dbb7f11r2aec33a544eed191@mail.gmail.com> Message-ID: On 10/12/05, Curt Hibbs wrote: > > Do you really want/need to be running more than one instance of MySQL? You > could just continue to use the one you already have and not use the one in > Instant Rails. To do that you would use the menu command "Configure >> > Instant Rails" and then uncheck the box that labelled "Automatically start > the servers when Instant Rails starts". > > Of course this will stop apache from automatically starting, too. You can > manually start it by clicking on the Apaqche button and selecting "Start". > Maybe in the next release I should have separate options for auto-starting > apache and mysql. > > You could also move your MySQL data into the Instant Rails instance and > just run that one. > > If you *really, really* want to run two instances of MySQL simultaneously, > I'd need to do a little research to see what the implications would be. > Obviously it'd have to run on a different port, and somehow you'd have to > tell Rails about this. > > Unfortunately, between work and getting ready for RubyConf, I really don't > have time to look into this right now. > No urgency here. Just excited about Instant Rails and eager to give you feedback. I have no rock solid reasons for running two MySQL instances. Just so happened that I had my regular setup running when I tried Instant Rails. Thank you and enjoy RubyConf. Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/96f74dbe/attachment.htm From ken.barker at gmail.com Wed Oct 12 22:37:56 2005 From: ken.barker at gmail.com (Ken Barker) Date: Wed, 12 Oct 2005 22:37:56 -0400 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page In-Reply-To: <31d15f490510112009p2c78618dx8df49c35fd163f7a@mail.gmail.com> References: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> <31d15f490510112009p2c78618dx8df49c35fd163f7a@mail.gmail.com> Message-ID: On 10/11/05, Curt Hibbs wrote: > > Edit your apache config file (menu: Configure >> Apache). At the very end > of the file you'll see two virtual host definitions. One for localhost and > one for cookbook. Delete the one for localhost and save the file. > > Restart apache and try browing to: > > http://localhost/ > > or > > http://127.0.0.1/ > > Does that work? > This did not solve the problem. I did find the issue while making and testing this change. I had another Apache running. Apache 2... It must have caused some conflict when I tried to hit the www.mycookbook.comurl. All is well. Thanks. Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/ca155129/attachment.htm From curt.hibbs at gmail.com Wed Oct 12 22:41:18 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Wed, 12 Oct 2005 21:41:18 -0500 Subject: [Instantrails-users] www.mycookbook.com not working - just shows apache page In-Reply-To: References: <31d15f490510111928j309db301qb7d2229e28b00e96@mail.gmail.com> <31d15f490510112009p2c78618dx8df49c35fd163f7a@mail.gmail.com> Message-ID: <31d15f490510121941p53c7b700m2f09e3ef2b68288@mail.gmail.com> Excellent! On 10/12/05, Ken Barker wrote: > > On 10/11/05, Curt Hibbs wrote: > > > > Edit your apache config file (menu: Configure >> Apache). At the very > > end of the file you'll see two virtual host definitions. One for localhost > > and one for cookbook. Delete the one for localhost and save the file. > > > > Restart apache and try browing to: > > > > http://localhost/ > > > > or > > > > http://127.0.0.1/ > > > > Does that work? > > > > This did not solve the problem. I did find the issue while making and > testing this change. I had another Apache running. Apache 2... It must have > caused some conflict when I tried to hit the www.mycookbook.comurl. > > All is well. > > Thanks. > > Ken > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051012/dc8bbad3/attachment.htm From smartgpx at gmail.com Fri Oct 14 05:07:37 2005 From: smartgpx at gmail.com (DeeJay) Date: Fri, 14 Oct 2005 10:07:37 +0100 Subject: [Instantrails-users] [basi] Configure/database(via phpmyadmin) not working Message-ID: <533048b70510140207i35541863i@mail.gmail.com> In c.l.r., basi queried - " Windows XP SP2 InstantRails MySql >From the IR menu, when I try to open configure/database, it errs with HTTP 500 Internal server error. The URL is pointing to http://127.0.0.1/mysql. " As another, different, data point in case it helps: I'm using WinXP-sp2, non-Admin user rights, 'clean' install of InstantRails1.0pre2, no prior installs of apache or MySQL. clicking 'IR_Main/Configure/Database' works for me. Brings up an IE6 browser page headed 'Welcome to phpMyAdmin 2.6.1' and lets me browse around the sample MySQL db for mycookbook. I notice that basi specifies 'MySql' IN ADDITION to IR - is that a prior installation, and notwithstanding that there *should* be no conflict, might that be the problem? btw, if MySQL does not have its server running the Configure submenu has the Database option greyed out, so getting to the HTTP 500 browser page that way would not be possible. DeeJay From rcena at epcor.ca Fri Oct 14 17:38:27 2005 From: rcena at epcor.ca (Cena, Resty) Date: Fri, 14 Oct 2005 15:38:27 -0600 Subject: [Instantrails-users] Configure Database not working Message-ID: <7D407E9B8819274591343B6B8DD8BDEC0778970A@ececmx01.epcor.ca> When I run Configure\Database (via phpmyadmin), I get the browser error: HTTP 500 - Internal server error Internet Explorer The browser points to: http://127.0.0.1/mysql/ The error does not leave any message on apache's access.log and error.log, nor in the instantrails.log. Both apache and mysql are in the Started state. Also, I was able to run the cookbook sample application. When I attempt to Create New Rails App (open console window), I get the following command errors: c:\instan~2\rails_apps>cd rails_apps The system cannot find the path specified. Looks like it should launch the process in c:\instantrails rather than in the rail_apps folder. Any help will be welcome. Thanks, basi This e-mail contains confidential information that is proprietary to EPCOR and its subsidiary companies in all respects. This information is intended only for the person(s) named in the destination address. Unauthorized distribution, copying or disclosure is strictly prohibited. If you receive this e-mail in error, please delete it immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051014/b5d42153/attachment-0001.htm From curt.hibbs at gmail.com Fri Oct 14 18:10:51 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Fri, 14 Oct 2005 17:10:51 -0500 Subject: [Instantrails-users] Configure Database not working In-Reply-To: <7D407E9B8819274591343B6B8DD8BDEC0778970A@ececmx01.epcor.ca> References: <7D407E9B8819274591343B6B8DD8BDEC0778970A@ececmx01.epcor.ca> Message-ID: <31d15f490510141510v115f2703qb1a8d7b2e965569f@mail.gmail.com> On 10/14/05, Cena, Resty wrote: > > When I run Configure\Database (via phpmyadmin), I get the browser error: > > HTTP 500 - Internal server error > Internet Explorer > > The browser points to: > > http://127.0.0.1/mysql/ > > The error does not leave any message on apache's access.log and error.log, > nor in the instantrails.log. > > Both apache and mysql are in the Started state. > The only thing I can think of is that something is messed up in your apache config file. Try unzipping a fresh copy of Instant Rails into a new directory, start that new copy of Instant Rails, and the try using "Configure >> Database" *before* doing anything else. Also, I was able to run the cookbook sample application. > > When I attempt to Create New Rails App (open console window), I get the > following command errors: > > c:\instan~2\rails_apps>cd rails_apps > The system cannot find the path specified. > > Looks like it should launch the process in c:\instantrails rather than in > the rail_apps folder. > This is a known problem with a workaround. See the FAQ: http://instantrails.rubyforge.org/wiki/wiki.pl?FAQ Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051014/3a2fd227/attachment.htm From jjones at aantix.com Sat Oct 15 03:58:04 2005 From: jjones at aantix.com (Jim Jones) Date: Sat, 15 Oct 2005 02:58:04 -0500 Subject: [Instantrails-users] Base directory for apps Message-ID: <000f01c5d15e$2e3abea0$1e01a8c0@AANTIX> Is there any way to specify a root project directory other than the default 'rails_apps' subdirectory? We have a few Rails projects on different drives that cannot be moved. We're using Windows, so symlinks are out of the question. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/48eccacf/attachment.htm From cervezaconcafe at gmail.com Sat Oct 15 06:22:22 2005 From: cervezaconcafe at gmail.com (CcC) Date: Sat, 15 Oct 2005 12:22:22 +0200 Subject: [Instantrails-users] If I close the DOS window, it does not work Message-ID: <2e680faa0510150322p3165229aladd0d7b261db3752@mail.gmail.com> First of all, my congrats for your awesome app. But I get an error when I start Instant Rails I had added the line in hosts file and save it (winXP SP2 running as admin) I am connected without proxies. I start the "cookbok" app checking the box and pushing "start SCGI" It opens a DOS window, which says: D:\Archivos\IRails\rails_apps\cookbook>..\..\ruby\bin\ruby.exe script\scgi_rails start -p 9999 -e production -D ERROR: Could not setup a SIGHUP handler. You won't be able to get status. Listening for connections on 127.0.0.1:9999 (D:\Archivos\IRails is the path where I had installed Instant Rails) If I don't close neither the DOS window nor the "Rails Applications" window it works correctly, just going to www.mycookbook.com in my browser (Firefox) But if I close either one of this two windows, when I go to www.mycookbook.com my browser shows a error message: Application error (Apache) Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html And if I return to "Rail Applications" window, I find the box of "cookbook" unchecked. I'd read the posts in the mail list (particullary the first thread of september) and I am not running no web server before installing Instant Rails in my PC. Am I missing something or doing something wrong? Just saying that I am just plain newbie with all this and I want learn. Sorry for my bad english. Cheers from Spain. Un saludo From juanmacervera at msn.com Sat Oct 15 06:52:51 2005 From: juanmacervera at msn.com (Juan M. Cervera) Date: Sat, 15 Oct 2005 12:52:51 +0200 Subject: [Instantrails-users] Installing typo in InstantRails Message-ID: I am trying to install typo on InstantRails, I think my problem has somthing to do with routing. I point my browser to the server but the only page I see is the index.html of ${path}/www (the page with "Instant Rails Help - Cooming soon!") ¿What I need to do to go into the typo app? Another question. Is there a how-to article, on how to setup two or more applications in the server? do I have to handle their request through SCGI mounted in different ports? I hope InstallRails solves all the trouble I had trying to configure fastcgi on apache in windows xp Thanks Juanma _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ken.barker at gmail.com Sat Oct 15 09:42:55 2005 From: ken.barker at gmail.com (Ken Barker) Date: Sat, 15 Oct 2005 09:42:55 -0400 Subject: [Instantrails-users] If I close the DOS window, it does not work In-Reply-To: <2e680faa0510150322p3165229aladd0d7b261db3752@mail.gmail.com> References: <2e680faa0510150322p3165229aladd0d7b261db3752@mail.gmail.com> Message-ID: The command window must remain open because SCGI is running. I believe Curt is targeting moving this off into a windows service so you it could be started, stopped, restarted like Apache and MySQL, via windows services. Ken On 10/15/05, CcC wrote: > > First of all, my congrats for your awesome app. > > But I get an error when I start Instant Rails > > I had added the line in hosts file and save it (winXP SP2 running as > admin) > I am connected without proxies. > I start the "cookbok" app checking the box and pushing "start SCGI" > It opens a DOS window, which says: > > D:\Archivos\IRails\rails_apps\cookbook>..\..\ruby\bin\ruby.exe > script\scgi_rails > start -p 9999 -e production -D > ERROR: Could not setup a SIGHUP handler. You won't be able to get status. > Listening for connections on 127.0.0.1:9999 > > (D:\Archivos\IRails is the path where I had installed Instant Rails) > If I don't close neither the DOS window nor the "Rails Applications" > window > it works correctly, just going to www.mycookbook.comin my browser (Firefox) > > But if I close either one of this two windows, when I go to > www.mycookbook.com > my browser shows a error message: > > Application error (Apache) > Change this error message for exceptions thrown outside of an action > (like in Dispatcher setups or broken Ruby code) in public/500.html > > And if I return to "Rail Applications" window, I find the box of > "cookbook" unchecked. > > I'd read the posts in the mail list (particullary the first thread of > september) and > I am not running no web server before installing Instant Rails in my PC. > > Am I missing something or doing something wrong? > Just saying that I am just plain newbie with all this and I want learn. > > Sorry for my bad english. Cheers from Spain. Un saludo > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/c68e1e85/attachment.htm From cervezaconcafe at gmail.com Sat Oct 15 11:32:17 2005 From: cervezaconcafe at gmail.com (CcC) Date: Sat, 15 Oct 2005 17:32:17 +0200 Subject: [Instantrails-users] If I close the DOS window, it does not work In-Reply-To: References: <2e680faa0510150322p3165229aladd0d7b261db3752@mail.gmail.com> Message-ID: <2e680faa0510150832m5e960c45qf6d06a9c4e9c3984@mail.gmail.com> Thank you Ken for your quick answer. OK, I MUST leave the command (ah!, DOS ;) window opened. I suppose the message "ERROR: Could not setup a SIGHUP handler" it is not important and it is correct. And I was wrong, because if I close the "Rail Applications" window, the page www.mycookbook.com seems to work correctly and is reached by my web browser. Thanks again and cheers. Un saludo. On 10/15/05, Ken Barker wrote: > The command window must remain open because SCGI is running. I believe Curt > is targeting moving this off into a windows service so you it could be > started, stopped, restarted like Apache and MySQL, via windows services. > > Ken > > > On 10/15/05, CcC wrote: > > > > First of all, my congrats for your awesome app. > > > > But I get an error when I start Instant Rails > > > > I had added the line in hosts file and save it (winXP SP2 running as > admin) > > I am connected without proxies. > > I start the "cookbok" app checking the box and pushing "start SCGI" > > It opens a DOS window, which says: > > > > > D:\Archivos\IRails\rails_apps\cookbook>..\..\ruby\bin\ruby.exe > script\scgi_rails > > start -p 9999 -e production -D > > ERROR: Could not setup a SIGHUP handler. You won't be able to get status. > > Listening for connections on 127.0.0.1:9999 > > > > (D:\Archivos\IRails is the path where I had installed Instant Rails) > > If I don't close neither the DOS window nor the "Rails Applications" > window > > it works correctly, just going to www.mycookbook.com in my browser > (Firefox) > > > > But if I close either one of this two windows, when I go to > www.mycookbook.com > > my browser shows a error message: > > > > Application error (Apache) > > Change this error message for exceptions thrown outside of an action > > (like in Dispatcher setups or broken Ruby code) in public/500.html > > > > And if I return to "Rail Applications" window, I find the box of > > "cookbook" unchecked. > > > > I'd read the posts in the mail list (particullary the first thread of > > september) and > > I am not running no web server before installing Instant Rails in my PC. > > > > Am I missing something or doing something wrong? > > Just saying that I am just plain newbie with all this and I want learn. > > > > Sorry for my bad english. Cheers from Spain. Un saludo > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > From curt.hibbs at gmail.com Sat Oct 15 11:34:26 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 15 Oct 2005 10:34:26 -0500 Subject: [Instantrails-users] If I close the DOS window, it does not work In-Reply-To: References: <2e680faa0510150322p3165229aladd0d7b261db3752@mail.gmail.com> Message-ID: <31d15f490510150834m66257dcfxcbbf4d490c8c1daf@mail.gmail.com> Yes, Kevin is correct. The SCGI server for the Rails application is running in that DOS box and when you close it you are terminating the app. This is temporrary. The goal is to get it running in the bacground. Curt On 10/15/05, Ken Barker wrote: > > The command window must remain open because SCGI is running. I believe > Curt is targeting moving this off into a windows service so you it could be > started, stopped, restarted like Apache and MySQL, via windows services. > > Ken > > On 10/15/05, CcC wrote: > > > > First of all, my congrats for your awesome app. > > > > But I get an error when I start Instant Rails > > > > I had added the line in hosts file and save it (winXP SP2 running as > > admin) > > I am connected without proxies. > > I start the "cookbok" app checking the box and pushing "start SCGI" > > It opens a DOS window, which says: > > > > D:\Archivos\IRails\rails_apps\cookbook>..\..\ruby\bin\ruby.exe > > script\scgi_rails > > start -p 9999 -e production -D > > ERROR: Could not setup a SIGHUP handler. You won't be able to get > > status. > > Listening for connections on 127.0.0.1:9999 > > > > (D:\Archivos\IRails is the path where I had installed Instant Rails) > > If I don't close neither the DOS window nor the "Rails Applications" > > window > > it works correctly, just going to www.mycookbook.comin my browser (Firefox) > > > > But if I close either one of this two windows, when I go to > > www.mycookbook.com > > my browser shows a error message: > > > > Application error (Apache) > > Change this error message for exceptions thrown outside of an action > > (like in Dispatcher setups or broken Ruby code) in public/500.html > > > > And if I return to "Rail Applications" window, I find the box of > > "cookbook" unchecked. > > > > I'd read the posts in the mail list (particullary the first thread of > > september) and > > I am not running no web server before installing Instant Rails in my PC. > > > > > > Am I missing something or doing something wrong? > > Just saying that I am just plain newbie with all this and I want learn. > > > > Sorry for my bad english. Cheers from Spain. Un saludo > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/849af2b3/attachment-0001.htm From curt.hibbs at gmail.com Sat Oct 15 11:35:46 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 15 Oct 2005 10:35:46 -0500 Subject: [Instantrails-users] If I close the DOS window, it does not work In-Reply-To: <31d15f490510150834m66257dcfxcbbf4d490c8c1daf@mail.gmail.com> References: <2e680faa0510150322p3165229aladd0d7b261db3752@mail.gmail.com> <31d15f490510150834m66257dcfxcbbf4d490c8c1daf@mail.gmail.com> Message-ID: <31d15f490510150835p450eec28kaf4ba120655de6a7@mail.gmail.com> Yes the error line is not important. Its refering to an SCGI Rails Runner feature that only works on Linux. Curt On 10/15/05, Curt Hibbs wrote: > > Yes, Kevin is correct. The SCGI server for the Rails application is > running in that DOS box and when you close it you are terminating the app. > This is temporrary. The goal is to get it running in the bacground. > > Curt > > On 10/15/05, Ken Barker wrote: > > > > The command window must remain open because SCGI is running. I believe > > Curt is targeting moving this off into a windows service so you it could be > > started, stopped, restarted like Apache and MySQL, via windows services. > > > > Ken > > > > On 10/15/05, CcC wrote: > > > > > > First of all, my congrats for your awesome app. > > > > > > But I get an error when I start Instant Rails > > > > > > I had added the line in hosts file and save it (winXP SP2 running as > > > admin) > > > I am connected without proxies. > > > I start the "cookbok" app checking the box and pushing "start SCGI" > > > It opens a DOS window, which says: > > > > > > D:\Archivos\IRails\rails_apps\cookbook>..\..\ruby\bin\ruby.exe > > > script\scgi_rails > > > start -p 9999 -e production -D > > > ERROR: Could not setup a SIGHUP handler. You won't be able to get > > > status. > > > Listening for connections on 127.0.0.1:9999 > > > > > > (D:\Archivos\IRails is the path where I had installed Instant Rails) > > > If I don't close neither the DOS window nor the "Rails Applications" > > > window > > > it works correctly, just going to www.mycookbook.comin my browser (Firefox) > > > > > > But if I close either one of this two windows, when I go to > > > www.mycookbook.com > > > my browser shows a error message: > > > > > > Application error (Apache) > > > Change this error message for exceptions thrown outside of an action > > > (like in Dispatcher setups or broken Ruby code) in public/500.html > > > > > > And if I return to "Rail Applications" window, I find the box of > > > "cookbook" unchecked. > > > > > > I'd read the posts in the mail list (particullary the first thread of > > > september) and > > > I am not running no web server before installing Instant Rails in my > > > PC. > > > > > > Am I missing something or doing something wrong? > > > Just saying that I am just plain newbie with all this and I want > > > learn. > > > > > > Sorry for my bad english. Cheers from Spain. Un saludo > > > > > > _______________________________________________ > > > Instantrails-users mailing list > > > Instantrails-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/2f372ae0/attachment.htm From cervezaconcafe at gmail.com Sat Oct 15 11:36:36 2005 From: cervezaconcafe at gmail.com (CcC) Date: Sat, 15 Oct 2005 17:36:36 +0200 Subject: [Instantrails-users] If I close the DOS window, it does not work In-Reply-To: <31d15f490510150834m66257dcfxcbbf4d490c8c1daf@mail.gmail.com> References: <2e680faa0510150322p3165229aladd0d7b261db3752@mail.gmail.com> <31d15f490510150834m66257dcfxcbbf4d490c8c1daf@mail.gmail.com> Message-ID: <2e680faa0510150836j3a200229n5699cc960c195960@mail.gmail.com> Thanks Curt, your application rocks! :D Cheers. Un saludo. On 10/15/05, Curt Hibbs wrote: > Yes, Kevin is correct. The SCGI server for the Rails application is running > in that DOS box and when you close it you are terminating the app. This is > temporrary. The goal is to get it running in the bacground. > > Curt > > On 10/15/05, Ken Barker wrote: > > > > The command window must remain open because SCGI is running. I believe > Curt is targeting moving this off into a windows service so you it could be > started, stopped, restarted like Apache and MySQL, via windows services. > > > > Ken > > > > > > On 10/15/05, CcC wrote: > > > > > First of all, my congrats for your awesome app. > > > > > > But I get an error when I start Instant Rails > > > > > > I had added the line in hosts file and save it (winXP SP2 running as > admin) > > > I am connected without proxies. > > > I start the "cookbok" app checking the box and pushing "start SCGI" > > > It opens a DOS window, which says: > > > > > > > D:\Archivos\IRails\rails_apps\cookbook>..\..\ruby\bin\ruby.exe > script\scgi_rails > > > start -p 9999 -e production -D > > > ERROR: Could not setup a SIGHUP handler. You won't be able to get > status. > > > Listening for connections on 127.0.0.1:9999 > > > > > > (D:\Archivos\IRails is the path where I had installed Instant Rails) > > > If I don't close neither the DOS window nor the "Rails Applications" > window > > > it works correctly, just going to www.mycookbook.com in my browser > (Firefox) > > > > > > But if I close either one of this two windows, when I go to > www.mycookbook.com > > > my browser shows a error message: > > > > > > Application error (Apache) > > > Change this error message for exceptions thrown outside of an action > > > (like in Dispatcher setups or broken Ruby code) in public/500.html > > > > > > And if I return to "Rail Applications" window, I find the box of > > > "cookbook" unchecked. > > > > > > I'd read the posts in the mail list (particullary the first thread of > > > september) and > > > I am not running no web server before installing Instant Rails in my PC. > > > > > > Am I missing something or doing something wrong? > > > Just saying that I am just plain newbie with all this and I want learn. > > > > > > Sorry for my bad english. Cheers from Spain. Un saludo > > > > > > _______________________________________________ > > > Instantrails-users mailing list > > > Instantrails-users at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > > > > > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > > From curt.hibbs at gmail.com Sat Oct 15 11:47:48 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 15 Oct 2005 10:47:48 -0500 Subject: [Instantrails-users] Installing typo in InstantRails In-Reply-To: References: Message-ID: <31d15f490510150847j22b49566k56276c736f6a2c76@mail.gmail.com> On 10/15/05, Juan M. Cervera wrote: > > I am trying to install typo on InstantRails, > I think my problem has somthing to do with routing. > I point my browser to the server but the only page I see is the index.html > of ${path}/www (the page with "Instant Rails Help - Cooming soon!") > ?What I need to do to go into the typo app? > > Another question. > Is there a how-to article, on how to setup two or more applications in the > server? > do I have to handle their request through SCGI mounted in different ports? > > I hope InstallRails solves all the trouble I had trying to configure > fastcgi on apache in windows xp > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users That's why I went with SCGI... I never was able to get FastCGI completely working on Windows. Yes, to run multiple applications, just choose a different port for each one. I've been meaning to install Typo myself (possible include it as a pre-installed sample app like the cookbook). I'll try installing Typo myself today and then I'll be in a better position to help you. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/ec249608/attachment.htm From curt.hibbs at gmail.com Sat Oct 15 11:59:19 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 15 Oct 2005 10:59:19 -0500 Subject: [Instantrails-users] Base directory for apps In-Reply-To: <000f01c5d15e$2e3abea0$1e01a8c0@AANTIX> References: <000f01c5d15e$2e3abea0$1e01a8c0@AANTIX> Message-ID: <31d15f490510150859j67f1825dwdcfeb95cdb6ba567@mail.gmail.com> You can use any directory you want as long as you setup the path correctly in the apache config file. You just won't be able to use the buttons in the Manage Rails Applications dialog. I need to add this as a configuration item. I your applications need to have the SCGI Raills Runner in their "script" subdirectory (its named "scgi_rails") and copy the command file to start SCGI (start_scgi.cmd) to your app's root directory (you need to adjust the paths used inside this cmd file). You can copy these files from the cookbook application. Arrrggg!!! I just realized that anyone that creates a new Rails app (in or out of the "rails_apps" directory), needs to do this also, and I never documented this anywhere! I need to fix this. Cyrt On 10/15/05, Jim Jones wrote: > > Is there any way to specify a root project directory other than the > default 'rails_apps' subdirectory? > > We have a few Rails projects on different drives that cannot be moved. We're > using Windows, so symlinks are out of the question. > > Thanks. > > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/b0d0f8d9/attachment.htm From curt.hibbs at gmail.com Sat Oct 15 12:33:30 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 15 Oct 2005 11:33:30 -0500 Subject: [Instantrails-users] Installing typo in InstantRails In-Reply-To: <31d15f490510150847j22b49566k56276c736f6a2c76@mail.gmail.com> References: <31d15f490510150847j22b49566k56276c736f6a2c76@mail.gmail.com> Message-ID: <31d15f490510150933sabf9fa7tf54aea361f028d52@mail.gmail.com> On 10/15/05, Curt Hibbs wrote: > > On 10/15/05, Juan M. Cervera wrote: > > > > I am trying to install typo on InstantRails, > > I think my problem has somthing to do with routing. > > I point my browser to the server but the only page I see is the > > index.html > > of ${path}/www (the page with "Instant Rails Help - Cooming soon!") > > ?What I need to do to go into the typo app? > > I just realized (when answering someone else's question) that I completely failed to explain how to create (or install) a new Rails app -- there are a couple extra files you need to create -- and I'll bet that this is your problem. The new application needs to have the SCGI Raills Runner in its "script" subdirectory (its named "scgi_rails") and the command file to start SCGI (start_scgi.cmd) in the app's root directory. These files can be copied from the cookbook application. I need to add something to Instant Rails to assist in this. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/6013293f/attachment-0001.htm From juanmacervera at msn.com Sat Oct 15 13:24:50 2005 From: juanmacervera at msn.com (Juan M. Cervera) Date: Sat, 15 Oct 2005 19:24:50 +0200 Subject: [Instantrails-users] Installing typo in InstantRails In-Reply-To: <31d15f490510150847j22b49566k56276c736f6a2c76@mail.gmail.com> Message-ID: Thanks Curt It will be great to have Typo installed as a sample app. I have seen how to have two or more applications installed, running the scgi_rails script in different ports. It works vwery well. But I would like to change the default page of my rails apps, changing config/routes.rb and this seems not to work. I have put this line in routes.rb map.connect '', :controller => 'store' but the browser, insted of being redirected to the scpedified controller shows the index of the public directoty, Is it necessary to have an index.html page that redirects to another page in the application? Juanma >From: Curt Hibbs >Reply-To: curt at hibbs.com, instantrails-users at rubyforge.org >To: instantrails-users at rubyforge.org >Subject: Re: [Instantrails-users] Installing typo in InstantRails >Date: Sat, 15 Oct 2005 10:47:48 -0500 > >On 10/15/05, Juan M. Cervera wrote: > > > > I am trying to install typo on InstantRails, > > I think my problem has somthing to do with routing. > > I point my browser to the server but the only page I see is the >index.html > > of ${path}/www (the page with "Instant Rails Help - Cooming soon!") > > ¿What I need to do to go into the typo app? > > > > Another question. > > Is there a how-to article, on how to setup two or more applications in >the > > server? > > do I have to handle their request through SCGI mounted in different >ports? > > > > I hope InstallRails solves all the trouble I had trying to configure > > fastcgi on apache in windows xp > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > >That's why I went with SCGI... I never was able to get FastCGI completely >working on Windows. > >Yes, to run multiple applications, just choose a different port for each >one. > >I've been meaning to install Typo myself (possible include it as a >pre-installed sample app like the cookbook). I'll try installing Typo >myself >today and then I'll be in a better position to help you. > >Curt >_______________________________________________ >Instantrails-users mailing list >Instantrails-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/instantrails-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From x2egard at yahoo.com Sat Oct 15 14:53:57 2005 From: x2egard at yahoo.com (E Gard) Date: Sat, 15 Oct 2005 11:53:57 -0700 (PDT) Subject: [Instantrails-users] Typo 2.5.6 Installed on InstantRails (quick step by step) Message-ID: <20051015185357.12069.qmail@web52911.mail.yahoo.com> 1) Unzip Typo 2.5.6 into the rails_apps folder. 2) Rails Applications --> Manage Rails Applications... (InstantRails application menu) 3) Check Typo-2.5.6 and click and configure SCGI settings 4) Edit hosts and add: 127.0.0.1 typo 5) Edit httpd.conf (at the bottom of the file): ServerName typo # handle all requests through SCGI SCGIMount / 127.0.0.1:9999 # (*** CHANGE #1 FOR TYPO ***) # Changed to Typo folder (typo-2.5.6) DocumentRoot ${path}/rails_apps/typo-2.5.6/public Options +FollowSymLinks Order allow,deny allow from all AddDefaultCharset utf-8 ErrorDocument 500 /500.html ErrorDocument 404 /404.html # matches locations with a dot following at least one more characters, # that is, things like *.html, *.css, *.js, which should be delivered # directly from the filesystem. Also matches the following # subdirectories: images, javascript(s), stylesheets # (*** CHANGE #2 FOR TYPO ***) # For Typo, remove stylesheets in list below # don't handle those with SCGI SCGIHandler Off # (*** CHANGE #3 FOR TYPO ***) # For Typo, removed # # # don't handle just / with SCGI # SCGIHandler Off # 6) Use Configure -> Database (via PhpMyAdmin) from the InstantRails menu. Create the databases (typo, typo_dev, typo_test). Use the db/schema.mysql.sql from typo to generate the tables 7) Browser to http://typo Ed __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From curt.hibbs at gmail.com Sat Oct 15 16:47:42 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 15 Oct 2005 15:47:42 -0500 Subject: [Instantrails-users] Typo 2.5.6 Installed on InstantRails (quick step by step) In-Reply-To: <20051015185357.12069.qmail@web52911.mail.yahoo.com> References: <20051015185357.12069.qmail@web52911.mail.yahoo.com> Message-ID: <31d15f490510151347o5a7c42cak175501faeb8b3695@mail.gmail.com> Good work... and perfect timing for me! I'm planning to include Typo as another sample. preinstalled Rails app! Also, can you try posting a comment to your Typo installation (it uses AJAX). Larry Kelly has reported that AJAX is not working in Instant Rails. But before running this test put the attached "mod_scgi.so" in your apache\modules directory replacing the one that is there (this version of SCGI is supposed to fix problems with AJAX). Restart apache and see if AJAX works. This updated SCGI did not fix the problem for Larry. I'd like to get a second test. Thanks, Curt On 10/15/05, E Gard wrote: > > 1) Unzip Typo 2.5.6 into the rails_apps folder. > 2) Rails Applications --> Manage Rails Applications... > (InstantRails application menu) > 3) Check Typo-2.5.6 and click and configure SCGI > settings > 4) Edit hosts and add: 127.0.0.1 typo > 5) Edit httpd.conf (at the bottom of the file): > > > ServerName typo > # handle all requests through SCGI > SCGIMount / 127.0.0.1:9999 > > # (*** CHANGE #1 FOR TYPO ***) > # Changed to Typo folder (typo-2.5.6) > DocumentRoot ${path}/rails_apps/typo-2.5.6/public > > Options +FollowSymLinks > Order allow,deny > allow from all > > AddDefaultCharset utf-8 > ErrorDocument 500 /500.html > ErrorDocument 404 /404.html > # matches locations with a dot following at least > one more characters, > # that is, things like *.html, *.css, *.js, > which should be delivered > # directly from the filesystem. Also matches the > following > # subdirectories: images, javascript(s), > stylesheets > > # (*** CHANGE #2 FOR TYPO ***) > # For Typo, remove stylesheets in list below > ^/(images|javascript|javascripts|[^/]+\.[^/]+$)> > # don't handle those with SCGI > SCGIHandler Off > > > # (*** CHANGE #3 FOR TYPO ***) > # For Typo, removed > # > # # don't handle just / with SCGI > # SCGIHandler Off > # > > > > 6) Use Configure -> Database (via PhpMyAdmin) > from the InstantRails menu. > Create the databases (typo, typo_dev, typo_test). > Use the db/schema.mysql.sql from typo to generate the > tables > > 7) Browser to http://typo > > Ed > > > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/ca963fb3/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: mod_scgi.so Type: application/octet-stream Size: 30208 bytes Desc: not available Url : http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/ca963fb3/mod_scgi-0001.so From juanmacervera at gmail.com Sat Oct 15 18:01:09 2005 From: juanmacervera at gmail.com (Juanma Cervera) Date: Sun, 16 Oct 2005 00:01:09 +0200 Subject: [Instantrails-users] Installing Typo on Instant Rails Message-ID: <43517C25.3090304@REMOVE_CAPS_AND_NOSPAM.telefonica.net> I don?t know how to post following some thread. From where can I answer some specific message ? If somebody can help me, please Well, I have followed the instructions from Ed for installing typo, It works, but I have problems with stylesheets when I am logged-in doing the administrations functions in the blog. I remember the same when I tried typo using fastcgi, CSS Stylesheets seem doesn?t work in that moment but work ok when you are not logged-in and are visiting the site. And always work with webrick, there is no problems with webrick. Maybe the problem is with Apache and not with SCGI. Also, I have read the last message from Curt, and knew about the problems with Ajax. I will test. Best regards From curt.hibbs at gmail.com Sat Oct 15 18:07:03 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Sat, 15 Oct 2005 17:07:03 -0500 Subject: [Instantrails-users] Installing Typo on Instant Rails In-Reply-To: <43517C25.3090304@REMOVE_CAPS_AND_NOSPAM.telefonica.net> References: <43517C25.3090304@REMOVE_CAPS_AND_NOSPAM.telefonica.net> Message-ID: <31d15f490510151507j790b7ffdk6d0187e511459489@mail.gmail.com> On 10/15/05, Juanma Cervera wrote: > > I don?t know how to post following some thread. > From where can I answer some specific message ? If somebody can help > me, please > > Well, I have followed the instructions from Ed for installing typo, > It works, but I have problems with stylesheets when I am logged-in doing > the administrations functions in the blog. > I remember the same when I tried typo using fastcgi, CSS Stylesheets > seem doesn?t work in that moment but work ok when you are not logged-in > and are visiting the site. > And always work with webrick, there is no problems with webrick. > Maybe the problem is with Apache and not with SCGI. > > Also, I have read the last message from Curt, and knew about the > problems with Ajax. > I will test. I'll try installing Typo myself tonight (after the day's RubyConf activities end) and see if I can figure out what's going on. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/6d02deff/attachment.htm From rcena at epcor.ca Sun Oct 16 00:44:49 2005 From: rcena at epcor.ca (Cena, Resty) Date: Sat, 15 Oct 2005 22:44:49 -0600 Subject: [Instantrails-users] Configure Database not working References: <7D407E9B8819274591343B6B8DD8BDEC0778970A@ececmx01.epcor.ca> <31d15f490510141510v115f2703qb1a8d7b2e965569f@mail.gmail.com> Message-ID: <7D407E9B8819274591343B6B8DD8BDEC0778970C@ececmx01.epcor.ca> I discovered what went wrong. I unzipped InstantRails into an existing c:\InstantRails folder, thus resulting in c:\InstantRails\InstantRails. When I realized what I had done, I renamed the mother InstantRails, then moved the daughter InstantRails directly under c:. So I re-unzipped the files directly under c: (after deleting the existing c:\InstantRails). It works. Thanks much! basi -----Original Message----- From: instantrails-users-bounces at rubyforge.org on behalf of Curt Hibbs Sent: Fri 10/14/2005 4:10 PM To: instantrails-users at rubyforge.org Cc: Subject: Re: [Instantrails-users] Configure Database not working On 10/14/05, Cena, Resty wrote: > > When I run Configure\Database (via phpmyadmin), I get the browser error: > > HTTP 500 - Internal server error > Internet Explorer > > The browser points to: > > http://127.0.0.1/mysql/ > > The error does not leave any message on apache's access.log and error.log, > nor in the instantrails.log. > > Both apache and mysql are in the Started state. > The only thing I can think of is that something is messed up in your apache config file. Try unzipping a fresh copy of Instant Rails into a new directory, start that new copy of Instant Rails, and the try using "Configure >> Database" *before* doing anything else. Also, I was able to run the cookbook sample application. > > When I attempt to Create New Rails App (open console window), I get the > following command errors: > > c:\instan~2\rails_apps>cd rails_apps > The system cannot find the path specified. > > Looks like it should launch the process in c:\instantrails rather than in > the rail_apps folder. > This is a known problem with a workaround. See the FAQ: http://instantrails.rubyforge.org/wiki/wiki.pl?FAQ Curt This e-mail contains confidential information that is proprietary to EPCOR and its subsidiary companies in all respects. This information is intended only for the person(s) named in the destination address. Unauthorized distribution, copying or disclosure is strictly prohibited. If you receive this e-mail in error, please delete it immediately. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4525 bytes Desc: not available Url : http://rubyforge.org/pipermail/instantrails-users/attachments/20051015/d148e922/attachment.bin From x2egard at yahoo.com Mon Oct 17 14:07:50 2005 From: x2egard at yahoo.com (E Gard) Date: Mon, 17 Oct 2005 11:07:50 -0700 (PDT) Subject: [Instantrails-users] Typo 2.5.6 Installed on InstantRails Message-ID: <20051017180750.8826.qmail@web52907.mail.yahoo.com> Fixing the admin stylesheet routing issue. Two more steps for Typo 2.5.6 on InstantRails: 1) Copy the admin css stylesheet Copy administration.css from rails_apps\typo-2.5.6\public\stylesheets to rails_apps\typo-2.5.6\themes\azure\stylesheets 2) Edit the app's routes.rb Edit the rails_apps\typo-2.5.6\config\routes.rb file: After line 60 add # Added this route after line 60 in routes.rb map.connect 'stylesheets/:filename', :controller => 'theme', :action => 'stylesheets' P.S. I haven't had any AJAX problems with Typo. However, I only use it on a single box and do everything from the admin (add articles, etc.) If you have AJAX trouble, are you using a third party tool to manage you Typo site? There is one other change, but I'm not sure if it impacts anything: rails_apps\typo-2.5.6\public\.htaccess line 19 Changed dispatch.fcgi to dispatch.cgi --------- Ed __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From mortonda at dgrmm.net Wed Oct 19 12:06:51 2005 From: mortonda at dgrmm.net (David Morton) Date: Wed, 19 Oct 2005 11:06:51 -0500 Subject: [Instantrails-users] rake doesn't work Message-ID: <43566F1B.2090503@dgrmm.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It looks like the initial configuration didn't change the rake.cmd file correctly. It had the old E:\ stuff in the parameter to ruby. Replacing the path makes it work. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDVm8bSIxC85HZHLMRAoXPAJ4zIR6HnB/2inkl/PV3jtWQjHc5KQCfTdkY x1Aa3Z8Efkm5O4RlUTWRQ90= =7ri/ -----END PGP SIGNATURE----- From curt.hibbs at gmail.com Wed Oct 19 12:16:57 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Wed, 19 Oct 2005 11:16:57 -0500 Subject: [Instantrails-users] rake doesn't work In-Reply-To: <43566F1B.2090503@dgrmm.net> References: <43566F1B.2090503@dgrmm.net> Message-ID: <31d15f490510190916u352da200q65d09a11f6316c85@mail.gmail.com> Strange... the path in rake.cmd gets updated on my system. Can you check the file's attributes to see it is marked as read-only? Also, try changing the name of you base Instant Rails directory and then start Instant Rails to see if it will then update rake.cmd with the new path. I'm just wondering if this is a one-time fluke, or a persistent problem. Thanks, Curt On 10/19/05, David Morton wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > It looks like the initial configuration didn't change the rake.cmd file > correctly. It had the old E:\ stuff in the parameter to ruby. Replacing > the > path makes it work. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDVm8bSIxC85HZHLMRAoXPAJ4zIR6HnB/2inkl/PV3jtWQjHc5KQCfTdkY > x1Aa3Z8Efkm5O4RlUTWRQ90= > =7ri/ > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051019/c40ff5c3/attachment.htm From juanmacervera at gmail.com Wed Oct 19 12:56:52 2005 From: juanmacervera at gmail.com (Juanma Cervera) Date: Wed, 19 Oct 2005 18:56:52 +0200 Subject: [Instantrails-users] Typo 2.5.6 Installed on InstantRails In-Reply-To: <20051017180750.8826.qmail@web52907.mail.yahoo.com> References: <20051017180750.8826.qmail@web52907.mail.yahoo.com> Message-ID: <43567AD4.8080905@gmail.com> E Gard wrote: > Fixing the admin stylesheet routing issue. > > Two more steps for Typo 2.5.6 on InstantRails: > > 1) Copy the admin css stylesheet > > Copy administration.css > from > rails_apps\typo-2.5.6\public\stylesheets > to > rails_apps\typo-2.5.6\themes\azure\stylesheets > > > 2) Edit the app's routes.rb > > Edit the rails_apps\typo-2.5.6\config\routes.rb file: > > After line 60 add > > # Added this route after line 60 in routes.rb > map.connect 'stylesheets/:filename', > :controller => 'theme', :action => 'stylesheets' > > P.S. I haven't had any AJAX problems with Typo. > However, I only use it on a single box and > do everything from the admin (add articles, etc.) > If you have AJAX trouble, are you using a third party > tool to manage you Typo site? > > There is one other change, but I'm not sure if it > impacts anything: > > rails_apps\typo-2.5.6\public\.htaccess > line 19 Changed dispatch.fcgi to dispatch.cgi > > --------- > Ed > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > Hi, Now it works perfectly, but ... Why is the behavior different when it is using Webrick and when it is using SCGI? Where is the problem? The question is only for getting a better understanding. I am trying to learn ruby, rails, apache, etc. Maybe too many things at the same time. Thanks. Juan M. Cervera From mortonda at dgrmm.net Wed Oct 19 13:48:19 2005 From: mortonda at dgrmm.net (David Morton) Date: Wed, 19 Oct 2005 12:48:19 -0500 Subject: [Instantrails-users] rake doesn't work In-Reply-To: <31d15f490510190916u352da200q65d09a11f6316c85@mail.gmail.com> References: <43566F1B.2090503@dgrmm.net> <31d15f490510190916u352da200q65d09a11f6316c85@mail.gmail.com> Message-ID: <435686E3.70109@dgrmm.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Curt Hibbs wrote: > Strange... the path in rake.cmd gets updated on my system. > > Can you check the file's attributes to see it is marked as read-only? > Also, try changing the name of you base Instant Rails directory and then > start Instant Rails to see if it will then update rake.cmd with the new > path. > > I'm just wondering if this is a one-time fluke, or a persistent problem. I just moved it, and it reverted back: @"C:\dev\InstantRails\ruby\bin\ruby.exe" "E:/Dev/RubyDev/InstantRails/svn/InstantRails/ruby/bin/rake" %* I have *not* yet edited the C:\dev\InstantRails\conf_files\rake.cmd file... hmm, looking at it, I see this: @"${path}\ruby\bin\ruby.exe" "E:/Dev/RubyDev/InstantRails/svn/InstantRails/ruby/bin/rake" %* Looks like the ${path} needs to be substituted in there too. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDVobjSIxC85HZHLMRAh8CAKCkEORjOutuN+WnfFcdfTRriB5HwQCcDnms bH/mwmT+zv2TiiCKUJgax8E= =Ow6o -----END PGP SIGNATURE----- From ldk2005 at gmail.com Thu Oct 20 07:05:17 2005 From: ldk2005 at gmail.com (Larry Kelly) Date: Thu, 20 Oct 2005 04:05:17 -0700 Subject: [Instantrails-users] How do I run multiple apps? Message-ID: <871b07a70510200405w51951a51xdfcb5569c504a9d4@mail.gmail.com> Instant Rails is great! I've got the cookbook app running just fine. But, other apps can only be accessed via Webrick. How can I get them to be accessible via Apache? Remotely, if possible. -- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051020/e799272a/attachment.htm From curt.hibbs at gmail.com Thu Oct 20 10:55:11 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Thu, 20 Oct 2005 09:55:11 -0500 Subject: [Instantrails-users] How do I run multiple apps? In-Reply-To: <871b07a70510200405w51951a51xdfcb5569c504a9d4@mail.gmail.com> References: <871b07a70510200405w51951a51xdfcb5569c504a9d4@mail.gmail.com> Message-ID: <31d15f490510200755j534215bekabc38bbd74b72b41@mail.gmail.com> On 10/20/05, Larry Kelly wrote: > > Instant Rails is great! I've got the cookbook app running just fine. But, > other apps can only be accessed via Webrick. How can I get them to be > accessible via Apache? Remotely, if possible. You have to configure SCGI for each rails app. Place your other rails applications in the "rails_apps" subdirectory and do "Rails Applications >> Manage Rails Application...", select the checkbox on your new application and then closk on "Configure SCGI Settings..." This will pop up some instructions on how to configure the SCGI settings for your new app. The default method for running multiple rails apps is to use apache's VirtualHost facility. This means that each Rails app needs its own domain name. This can be faked from your local machine (the popup instructions tell you how to do this), but if you want to access it from other machines you need real domain names. It's also possible to sun each Rails app in a subdirectory off of a single domain. The setup for this is more complicated. Eventually there will be a instructions for this on the Instant Rails web site, but for now I copied below a recent posting to the Rails ML below that tells how to do this. Curt ================================================ Paul Wright to rails Hi Brian, This is what I did to get Rails to run in a subdirectory under Apache and SCGI on linux: httpd.conf: SCGIMount /rails/app 127.0.0.1:9999 AllowOverride All So the mount point is a virtual subdirectory inside the rails public directory public/.htaccess: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /rails/app/$1 [QSA,L] And then in routes.rb double up each route thus: ActionController::Routing::Routes.draw do |map| base_dir = "app/" # Add your own custom routes here. # The priority is based upon order of creation: first created -> highest priority. # Here's a sample route: # map.connect 'products/:id', :controller => 'catalog', :action => 'view' # Keep in mind you can assign values other than :controller and :action # You can have the root of your site routed by hooking up '' # -- just remember to delete public/index.html. map.connect '', :controller => "admin" map.connect base_dir + '', :controller => "admin" # Allow downloading Web Service WSDL as a file with an extension # instead of a file named 'wsdl' map.connect ':controller/service.wsdl', :action => 'wsdl' map.connect base_dir + ':controller/service.wsdl', :action => 'wsdl' # Install the default route as the lowest priority. map.connect ':controller/:action/:id' map.connect base_dir + ':controller/:action/:id' end So the pattern here is the same as FCGI deployment, get the webserver to check for the existance of a static file that matches the request first, if not then rewrite the request to use the SCGI mount point instead. Other than that I didn't need to set ActionController::Base.asset_host (although I spent a while trying to get it working with just that). Just ensure that the prefix route is a lower priority than the one you want to use publicly. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051020/fb691c24/attachment.htm From shodhan_sheth at persistent.co.in Fri Oct 21 05:53:36 2005 From: shodhan_sheth at persistent.co.in (shodhan) Date: Fri, 21 Oct 2005 15:23:36 +0530 Subject: [Instantrails-users] [NewBie]Access RailsApp from different computer Message-ID: <4358BAA0.6090100@persistent.co.in> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051021/2dcf33c0/attachment.htm From curt.hibbs at gmail.com Fri Oct 21 08:46:21 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Fri, 21 Oct 2005 07:46:21 -0500 Subject: [Instantrails-users] [NewBie]Access RailsApp from different computer In-Reply-To: <4358BAA0.6090100@persistent.co.in> References: <4358BAA0.6090100@persistent.co.in> Message-ID: <31d15f490510210546n43f0246bv92783380d36a6da5@mail.gmail.com> By adding www.myapp.com to your hosts file you are faking a domain name. This is really just intended for development purposes. To be accessible from other machines you would need to register that domain name so that it would appear inthe public DNS system. However, if you have just a few machines that you want to have access to your app for testign purposes, then they, too, can add the same entry to their hosts file and it will work as long as you are using a real ip number (using 127.0.0.1 will not work because that always means the local machine). Curt On 10/21/05, shodhan wrote: > > Hi > InstantRails works perfectly fine on my computer after i make the > following changes in the configuration files > > modified start_scgi to include -h option > > ..\..\ruby\bin\ruby.exe script\scgi_rails start -h my.ip.add.ress -p 9999 > -e production -D > > modified hosts to include > > my.ip.addr.ess www.myApp.com > > modified httpd.conf, (modified cookbook virtualhost) > > > ServerName www.myApp.com > # handle all requests through SCGI > SCGIMount / my.ip.add.ress:9999 > DocumentRoot ${path}/rails_apps/myApp/public > > Options +FollowSymLinks > Order allow,deny > allow from all > > AddDefaultCharset utf-8 > ErrorDocument 500 /500.html > ErrorDocument 404 /404.html > # matches locations with a dot following at least one more characters, > # that is, things like *.html, *.css, *.js, which should be delivered > # directly from the filesystem. Also matches the following > # subdirectories: images, javascript(s), stylesheets > ^/(images|javascript|javascripts|stylesheets|[^/]+\.[^/]+$)> > # don't handle those with SCGI > SCGIHandler Off > > > # don't handle just / with SCGI > SCGIHandler Off > > > > Once i start scgi myApp is up at www.myApp.com > Unfortunately the same is not accessible from a different computer. > So the question is 1) is this configuration right, and 2) is this the > onnly configuration required to make my app accessible to the other > computers > many thanx in advance > shodhan > ps: if i try telnet my.ip.add.ress 9999 from another machine, it turns out > to be sucessfull > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051021/63d3e894/attachment-0001.htm From x2egard at yahoo.com Sat Oct 22 04:28:09 2005 From: x2egard at yahoo.com (E Gard) Date: Sat, 22 Oct 2005 01:28:09 -0700 (PDT) Subject: [Instantrails-users] [NewBie]Access RailsApp from different computer In-Reply-To: <4358BAA0.6090100@persistent.co.in> Message-ID: <20051022082809.58632.qmail@web52911.mail.yahoo.com> Hi Shodhan, I don't know what kind of network setup you have, but I'm using a linksys router with DDNS (See DynDNS at www.dyndns.org). Here is my change: #### Salted #### ServerName x2egard.dyndns.org The DynDNS site let's you create the above name and maps it to your router's IP address (no charge for the service, it's free!). My router than forwards port 80 (Apache) to a machine on my local network. I browse to http://x2egard.dyndns.org/ and get the salted rails app from any internet connected browser. Ed --- shodhan wrote: --------------------------------- Hi InstantRails works perfectly fine on my computer after i make thefollowing changes in the configuration files modified start_scgi to include -h option ..\..\ruby\bin\ruby.exe script\scgi_rails start -hmy.ip.add.ress -p 9999 -e production -D modified hosts to include my.ip.addr.ess www.myApp.com modified httpd.conf, (modified cookbook virtualhost) ServerName www.myApp.com # handle all requests through SCGI SCGIMount / my.ip.add.ress:9999 DocumentRoot ${path}/rails_apps/myApp/public Options +FollowSymLinks Order allow,deny allow from all AddDefaultCharset utf-8 ErrorDocument 500 /500.html ErrorDocument 404 /404.html # matches locations with a dot following at least one morecharacters, # that is, things like *.html, *.css, *.js, which should bedelivered # directly from the filesystem. Also matches the following # subdirectories: images, javascript(s), stylesheets # don't handle those with SCGI SCGIHandler Off # don't handle just / with SCGI SCGIHandler Off Once i start scgi myApp is up at www.myApp.com Unfortunately the same is not accessible from a different computer. So the question is 1) is this configuration right, and 2) is this theonnly configuration required to make my app accessible to the othercomputers many thanx in advance shodhan ps: if i try telnet my.ip.add.ress 9999 from another machine, it turnsout to be sucessfull > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From shodhan_sheth at persistent.co.in Sat Oct 22 08:42:32 2005 From: shodhan_sheth at persistent.co.in (shodhan) Date: Sat, 22 Oct 2005 18:12:32 +0530 Subject: [Instantrails-users] [NewBie]Access RailsApp from different computer In-Reply-To: <20051022082809.58632.qmail@web52911.mail.yahoo.com> References: <20051022082809.58632.qmail@web52911.mail.yahoo.com> Message-ID: <435A33B8.5080902@persistent.co.in> Hi thanks(Curt and Ed) shodhan E Gard wrote: >Hi Shodhan, > >I don't know what kind of network setup you have, but >I'm using a linksys router with DDNS (See DynDNS at >www.dyndns.org). > >Here is my change: > > > #### Salted #### > ServerName x2egard.dyndns.org > >The DynDNS site let's you create the above name and >maps it to your router's IP address (no charge for the >service, it's free!). My router than forwards port 80 >(Apache) to a machine on my local network. > >I browse to http://x2egard.dyndns.org/ and get the >salted rails app from any internet connected browser. > >Ed > > >--- shodhan wrote: > > >--------------------------------- > Hi >InstantRails works perfectly fine on my computer after >i make thefollowing changes in the configuration files > >modified start_scgi to include -h option >..\..\ruby\bin\ruby.exe script\scgi_rails start >-hmy.ip.add.ress -p 9999 -e production -D >modified hosts to include >my.ip.addr.ess www.myApp.com >modified httpd.conf, (modified cookbook virtualhost) > > ServerName www.myApp.com > # handle all requests through SCGI > SCGIMount / my.ip.add.ress:9999 > DocumentRoot ${path}/rails_apps/myApp/public > > Options +FollowSymLinks > Order allow,deny > allow from all > > AddDefaultCharset utf-8 > ErrorDocument 500 /500.html > ErrorDocument 404 /404.html > # matches locations with a dot following at least >one morecharacters, > # that is, things like *.html, *.css, *.js, >which should bedelivered > # directly from the filesystem. Also matches the >following > # subdirectories: images, javascript(s), >stylesheets > > > # don't handle those with SCGI > SCGIHandler Off > > > # don't handle just / with SCGI > SCGIHandler Off > > > >Once i start scgi myApp is up at www.myApp.com >Unfortunately the same is not accessible from a >different computer. >So the question is 1) is this configuration right, and >2) is this theonnly configuration required to make my >app accessible to the othercomputers >many thanx in advance >shodhan >ps: if i try telnet my.ip.add.ress 9999 from another >machine, it turnsout to be sucessfull > > >>_______________________________________________ >>Instantrails-users mailing list >>Instantrails-users at rubyforge.org >> >> >> >http://rubyforge.org/mailman/listinfo/instantrails-users > > > > > > > >__________________________________ >Yahoo! Mail - PC Magazine Editors' Choice 2005 >http://mail.yahoo.com > > > From mortonda at dgrmm.net Mon Oct 24 12:02:39 2005 From: mortonda at dgrmm.net (David Morton) Date: Mon, 24 Oct 2005 11:02:39 -0500 Subject: [Instantrails-users] default text editor, shell Message-ID: <435D059F.3020508@dgrmm.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Would it be possible to allow for a different text editor when editing configs, and a cygwin bash shell when running a command prompt? (Would also have to insert the proper path into bash) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDXQWfSIxC85HZHLMRAqjrAJ0YHBhT1j6rB2XaLOO2JQAoEg0qkwCfUEcj gr+rcxAKm9MvFvHkHNT8pqM= =RdA/ -----END PGP SIGNATURE----- From curt.hibbs at gmail.com Mon Oct 24 13:38:04 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Mon, 24 Oct 2005 12:38:04 -0500 Subject: [Instantrails-users] default text editor, shell In-Reply-To: <435D059F.3020508@dgrmm.net> References: <435D059F.3020508@dgrmm.net> Message-ID: <31d15f490510241038u2f711b97q70a780dd021a2e04@mail.gmail.com> Thanks for reminding me. I had planned to add a preference item to specify your editor of choice, but I completely forgot about it. It's on my todo list now. Curt On 10/24/05, David Morton wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Would it be possible to allow for a different text editor when editing > configs, > and a cygwin bash shell when running a command prompt? (Would also have to > insert the proper path into bash) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDXQWfSIxC85HZHLMRAqjrAJ0YHBhT1j6rB2XaLOO2JQAoEg0qkwCfUEcj > gr+rcxAKm9MvFvHkHNT8pqM= > =RdA/ > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051024/2d2c3b14/attachment.htm From smartgpx at gmail.com Thu Oct 27 12:06:48 2005 From: smartgpx at gmail.com (DeeJay) Date: Thu, 27 Oct 2005 17:06:48 +0100 Subject: [Instantrails-users] InstRails FAQ: FreeRIDE Message-ID: <533048b70510270906i69dc07c7s@mail.gmail.com> Does it help to observe that in the ..\ruby\freeride directory created by 1CI there are batch files run.bat and runw.bat that can invoke FreeRIDE for you? Waiting patiently but with 'bated breath for InstRails-pre3 Thanks for your continuing efforts - DeeJay, Leicester, UK From curt.hibbs at gmail.com Thu Oct 27 13:21:17 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Thu, 27 Oct 2005 12:21:17 -0500 Subject: [Instantrails-users] InstRails FAQ: FreeRIDE In-Reply-To: <533048b70510270906i69dc07c7s@mail.gmail.com> References: <533048b70510270906i69dc07c7s@mail.gmail.com> Message-ID: <31d15f490510271021t3ad4e846s1dbcb403a7480b87@mail.gmail.com> No, those are used for the standalone version of freeride with includes its own runtime copy ruby. Curt On 10/27/05, DeeJay wrote: > > Does it help to observe that in the ..\ruby\freeride directory created > by 1CI there are batch files run.bat and runw.bat that can invoke > FreeRIDE for you? > > Waiting patiently but with 'bated breath for InstRails-pre3 > > Thanks for your continuing efforts - > > DeeJay, Leicester, UK > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051027/f48b6309/attachment.htm From curt.hibbs at gmail.com Thu Oct 27 16:00:58 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Thu, 27 Oct 2005 15:00:58 -0500 Subject: [Instantrails-users] [ANN] Instant Rails 1.0 preview3 Released Message-ID: <31d15f490510271300i7c72f952h5fce829a6d56b432@mail.gmail.com> Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails, Apache, and MySQL, all preconfigured and ready to run. No installer, you simply drop it into the directory of your choice and run it. It does not modify your system environment. This release of Instant Rails for Windows, but there are plans for ports to Linux, BSD, and OSX. The Instant Rails home page has links for downloading and getting started with Instant Rails: http://instantrails.rubyforge.org/ If you already have Instant Rails installed, then bedure to read the upgrade instructions: http://instantrails.rubyforge.org/wiki/wiki.pl?How_To_Upgrade Preview3 fixes a few minor bugs and upgrades Rails to 1.0 Release Candidate 3 (aka 0.14.2). It also updates SCGI and the Apache side (bug fix for AJAX problems), and SCGI Rails Runner to Zed Shaw's latest version 0.4.3. Instant Rails -- Change Log =========================== 2005-10-27: Instant Rails 1.0 preview3 * Upgraded Rails to Rails 1.0: The Release Candidate 3 (aka 0.14.2) * Upgraded to SCGI Rails Runer 0.4.3 * Added "fxri" to the help menu. * Fixed a problem where console windows were being opened in the wrong current directory. This meant that ruby\bin wasn't being put on the path which, in turn, meant you couldn't execute the "gem" or "rails" commands. * Fixed several minor problems. * Created this change log! Also, added a ToDo.txt file. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051027/46f6c4ec/attachment.htm From curt.hibbs at gmail.com Mon Oct 31 09:32:39 2005 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Mon, 31 Oct 2005 08:32:39 -0600 Subject: [Instantrails-users] [New FAQ Entry] Q: How can I auto-start my Rails app when I reboot? Message-ID: <31d15f490510310632o70ab5009n1e5f56583da0ad10@mail.gmail.com> Q: How can I auto-start my Rails app when I reboot? Instant Rails will provide this ability before the final 1.0 release, but you can also do it yourself. First, you need to have configured SCGI for your Rails app. Then just create a bat or cmd file in your startup folder that contains the following ("..." is the path where you installed Instant Rails): cd ...\rails_apps\ ...\ruby\bin\ruby.exe ...\ruby\bin\scgi_service Basically, you have to change the current directory to you app's base directory, and then run the Ruby script scgi_service. This will read the scgi configuration file in you app's config subdirectory to properly start up your Rails app. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20051031/8c947097/attachment-0001.htm