Mike
2006-Jan-12 04:25 UTC
[Instantrails-users] Instantrails-users Digest, Vol 4, Issue 13
Ok, I can run it off of the hard drive in the pc but cannot from the 256 meg usb key??? Oh, and I have renamed the directory to just I:\IR I ran some netstat commands and have verified that the scgi server is not starting. When I run from the hdd I get the listening port of 9999 which is the default but when I run from the usb no port 9999 is opened and there are no scgi log messages in the cookbook log directory. There is a development log and a scgi log. I have deleted the contents of both after I have sucessfully ran from the hard drive. Problem seems to be with scgi but I do not know enogh yet to troubleshoot/fix scgi problems! Any suggestions? Thanks! Mike Message: 4> Date: Wed, 11 Jan 2006 12:16:39 -0600 > From: David Morton <mortonda at dgrmm.net> > Subject: Re: [Instantrails-users] Need a little help w/ Instant Rails > & Cookbook App... > To: instantrails-users at rubyforge.org > Message-ID: <43C54B87.5070908 at dgrmm.net> > Content-Type: text/plain; charset=ISO-8859-1 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Mike wrote: > > > [Wed Jan 11 11:25:43 2006] [error] [client 127.0.0.1 <http://127.0.0.1> > > ] (10061)Unknown error: scgi: connecting to server > > > > Mysql > > I:\INSTAN~1.0\MySql\bin\mysqld.exe: ready for connections. > > I wonder if USB keys have poor support for long file names... Try naming > the > I:\InstantRails folder to something shorter, like I:\IR > > > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDxUuHSIxC85HZHLMRAnSkAJ4rZofYA+8OOwNLw4wsTPrSRJ95rQCfaBlk > oWtLjnj8Z6uTczwnJWDmcEE> =Sswz > -----END PGP SIGNATURE----- > > > ------------------------------ > > Message: 5 > Date: Wed, 11 Jan 2006 12:33:43 -0600 > From: Curt Hibbs <curt.hibbs at gmail.com> > Subject: Re: [Instantrails-users] Need a little help w/ Instant Rails > & Cookbook App... > To: instantrails-users at rubyforge.org > Message-ID: > <31d15f490601111033s30310e4kb56896c3830274ee at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On 1/11/06, David Morton <mortonda at dgrmm.net> wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Mike wrote: > > > > > [Wed Jan 11 11:25:43 2006] [error] [client 127.0.0.1 <http://127.0.0.1 > > > > > ] (10061)Unknown error: scgi: connecting to server > > > > > > Mysql > > > I:\INSTAN~1.0\MySql\bin\mysqld.exe: ready for connections. > > > > I wonder if USB keys have poor support for long file names... Try > naming > > the > > I:\InstantRails folder to something shorter, like I:\IR > > > Also, if that still fails, try running off of a regular hard disk on the > same computer. What I''d like to know is if you have a general problem > running IR on that computer, or is it just somethig to do with the USB > flash > drive. > > Curt >Kind Regards, Mike Ickes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060111/456838db/attachment.htm
Has anybody tried to work through Curt''s "RwRoR" article using IR instead of the component-by-component install detailed in the article? Can anyone point me to a tutorial(s) that''s specific to IR? I tried briefly to work through the article yesterday and found myself with "what to do now" questions that are based on my lack of understanding; mostly, I think, of the underlying Rails architecture. For example... IR "installs" Apache." Do I still start the Webrick server? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060112/c0a397f5/attachment.htm
> IR "installs" Apache." Do I still start the Webrick server?I''ll tell you the way I use IR. I open the manager app and then start only MySQL. I use the Ruby console that is provided by IR and Webrick for all my development. I never use Apache or SCGI at all and I don''t use IR in any production capacity. For me the benefit in IR is that I can put it on my usb hard drive and take it with me and wherever I am I have a fully capable Rails playground.
Thanks, Frank. I''ll try that in the hope I can get enough working to do some development. OTOH, I''m evaluating RoR in the hope that I''ll be able to use it to deploy a production web site. So getting Apache working in order to begin to get a handle on issues relating to its use is important to me. Your response brings up another question for me... What the heck is SCGI and how does it fit into the Rails architecture? Best regards, Bill ----- Original Message ----- From: "Frank Hale" <frankhale at gmail.com> To: <instantrails-users at rubyforge.org> Sent: Thursday, January 12, 2006 10:08 AM Subject: Re: [Instantrails-users] RwRoR on IR?> > IR "installs" Apache." Do I still start the Webrick server? > > I''ll tell you the way I use IR. I open the manager app and then start > only MySQL. I use the Ruby console that is provided by IR and Webrick > for all my development. I never use Apache or SCGI at all and I don''t > use IR in any production capacity. For me the benefit in IR is that I > can put it on my usb hard drive and take it with me and wherever I am > I have a fully capable Rails playground. > > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users
http://www.mems-exchange.org/software/scgi/ That URL can explain what SCGI is better than I can. On 1/12/06, Bill Walton <bill.walton at charter.net> wrote:> Thanks, Frank. I''ll try that in the hope I can get enough working to do > some development. OTOH, I''m evaluating RoR in the hope that I''ll be able to > use it to deploy a production web site. So getting Apache working in order > to begin to get a handle on issues relating to its use is important to me. > > Your response brings up another question for me... > > What the heck is SCGI and how does it fit into the Rails architecture? > > Best regards, > Bill > > ----- Original Message ----- > From: "Frank Hale" <frankhale at gmail.com> > To: <instantrails-users at rubyforge.org> > Sent: Thursday, January 12, 2006 10:08 AM > Subject: Re: [Instantrails-users] RwRoR on IR? > > > > > IR "installs" Apache." Do I still start the Webrick server? > > > > I''ll tell you the way I use IR. I open the manager app and then start > > only MySQL. I use the Ruby console that is provided by IR and Webrick > > for all my development. I never use Apache or SCGI at all and I don''t > > use IR in any production capacity. For me the benefit in IR is that I > > can put it on my usb hard drive and take it with me and wherever I am > > I have a fully capable Rails playground. > > > > _______________________________________________ > > 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 >
Thank you for the link. It opens a whole new set of questions that will require some additional thought to frame intelligently. For example... The Getting Started page on the IR wiki says "The cookbook app is already configured to use SCGI on port 9999, and Typo is already configured to use SCGI on port 9998, but we must tell Windows to fake the domain names that is (sic) preconfigured in the Apache configuration file: ..." Problem is.... what follows makes no mention of doing anything with SCGI other than starting it, and in reviewing the "RwRoR" articles (parts 1 & 2) I can''t find any mention of configuring SCGI to use port 9999 (or any other port) in the development of the cookbook app. Any help understanding this would be very much appreciated. Best regards, Bill ----- Original Message ----- From: "Frank Hale" <frankhale at gmail.com> To: <instantrails-users at rubyforge.org> Sent: Thursday, January 12, 2006 11:12 AM Subject: Re: [Instantrails-users] RwRoR on IR?> http://www.mems-exchange.org/software/scgi/ > > That URL can explain what SCGI is better than I can. > > On 1/12/06, Bill Walton <bill.walton at charter.net> wrote: > > Thanks, Frank. I''ll try that in the hope I can get enough working to do > > some development. OTOH, I''m evaluating RoR in the hope that I''ll beable to> > use it to deploy a production web site. So getting Apache working inorder> > to begin to get a handle on issues relating to its use is important tome.> > > > Your response brings up another question for me... > > > > What the heck is SCGI and how does it fit into the Rails architecture? > > > > Best regards, > > Bill > > > > ----- Original Message ----- > > From: "Frank Hale" <frankhale at gmail.com> > > To: <instantrails-users at rubyforge.org> > > Sent: Thursday, January 12, 2006 10:08 AM > > Subject: Re: [Instantrails-users] RwRoR on IR? > > > > > > > > IR "installs" Apache." Do I still start the Webrick server? > > > > > > I''ll tell you the way I use IR. I open the manager app and then start > > > only MySQL. I use the Ruby console that is provided by IR and Webrick > > > for all my development. I never use Apache or SCGI at all and I don''t > > > use IR in any production capacity. For me the benefit in IR is that I > > > can put it on my usb hard drive and take it with me and wherever I am > > > I have a fully capable Rails playground. > > > > > > _______________________________________________ > > > 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
I have no attempted to use the Apache + SCGI within IR yet. If you want to run the 2 webapps you could use Webrick by opening a ruby console, changing the directory to either webapp and then typing: ruby script/server <hit enter> Webrick will start on port 3000 Load up your browser of choice and go to the url: http://localhost:3000/ Of course with that said the information I wrote does not help you with Apache or SCGI (sorry for that). On 1/12/06, Bill Walton <bill.walton at charter.net> wrote:> Thank you for the link. It opens a whole new set of questions that will > require some additional thought to frame intelligently. For example... > > The Getting Started page on the IR wiki says "The cookbook app is already > configured to use SCGI on port 9999, and Typo is already configured to use > SCGI on port 9998, but we must tell Windows to fake the domain names that is > (sic) preconfigured in the Apache configuration file: ..." > > Problem is.... what follows makes no mention of doing anything with SCGI > other than starting it, and in reviewing the "RwRoR" articles (parts 1 & 2) > I can''t find any mention of configuring SCGI to use port 9999 (or any other > port) in the development of the cookbook app. > > Any help understanding this would be very much appreciated. > > Best regards, > Bill > > ----- Original Message ----- > From: "Frank Hale" <frankhale at gmail.com> > To: <instantrails-users at rubyforge.org> > Sent: Thursday, January 12, 2006 11:12 AM > Subject: Re: [Instantrails-users] RwRoR on IR? > > > > http://www.mems-exchange.org/software/scgi/ > > > > That URL can explain what SCGI is better than I can. > > > > On 1/12/06, Bill Walton <bill.walton at charter.net> wrote: > > > Thanks, Frank. I''ll try that in the hope I can get enough working to do > > > some development. OTOH, I''m evaluating RoR in the hope that I''ll be > able to > > > use it to deploy a production web site. So getting Apache working in > order > > > to begin to get a handle on issues relating to its use is important to > me. > > > > > > Your response brings up another question for me... > > > > > > What the heck is SCGI and how does it fit into the Rails architecture? > > > > > > Best regards, > > > Bill > > > > > > ----- Original Message ----- > > > From: "Frank Hale" <frankhale at gmail.com> > > > To: <instantrails-users at rubyforge.org> > > > Sent: Thursday, January 12, 2006 10:08 AM > > > Subject: Re: [Instantrails-users] RwRoR on IR? > > > > > > > > > > > IR "installs" Apache." Do I still start the Webrick server? > > > > > > > > I''ll tell you the way I use IR. I open the manager app and then start > > > > only MySQL. I use the Ruby console that is provided by IR and Webrick > > > > for all my development. I never use Apache or SCGI at all and I don''t > > > > use IR in any production capacity. For me the benefit in IR is that I > > > > can put it on my usb hard drive and take it with me and wherever I am > > > > I have a fully capable Rails playground. > > > > > > > > _______________________________________________ > > > > 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 > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bill Walton wrote:> What the heck is SCGI and how does it fit into the Rails architecture?SCGI is a (better, IMHO) replacement for fastcgi. It loads the rails environment and application into a always running process, which speeds up the response time over plain CGI. Essentially, a SCGI Mount point is set up on /dispatch.fcgi and then any requests that need to be handled by rails gets mapped onto that point via mod_rewrite. Unlike Fastcgi, the file, "dispatch.fcgi" is not actually run, but rather the request is proxied to the running SCGI process. The Webrick server which is used in most tutorials is a simple webserver written in Ruby, which also has the rails environment already loaded. Howver, it isn''t really designed for production level hosting, which is where the Apache/[fastcgi/scgi/mod_ruby] part comes in. The best reason for doing this IMHO is that SCGI can run as a different user than apache, which makes for much better security. And with Instant rails, it is all pretty much set up for you, so you can do development in it. OTOH, several editors, like radrails, need to start up the webrick server so they can do debugging. In that case, simply stop the apache process, and ignore the scgi server. - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDxrG7SIxC85HZHLMRAqt7AJ0cY0bjBXit5LrWncgCsKoKIllKfwCcCQ9s rz2ddTe+H6+PxHejXassAOM=cCAj -----END PGP SIGNATURE-----