From brendanarnold at gmail.com Thu Feb 1 21:15:23 2007 From: brendanarnold at gmail.com (Brendan Arnold) Date: Thu Feb 1 21:15:28 2007 Subject: [Locomotive-users] Proxy problems with Locomotive gem Message-ID: <5ed41c130702011315i5c3fd592r86efa445f860cf7b@mail.gmail.com> Hi there, When I try to install a gem (using a Terminal launched from the Locomotive window, with the correct paths etc) I get the following error Brendan-Arnolds-Computer% sudo gem install login_generator Password: Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (Gem::RemoteSourceException) Error fetching remote gem cache: 407 Proxy Authentication Required Brendan-Arnolds-Computer% $HTTP_PROXY is correctly set for the terminal session. What is bizarre is that I have compiled my own ruby/gem combo and installed it in /usr/local, when using an ordinary Terminal session (with /usr/local first in the $PATH) I have no trouble with the above command - gems install fine. This happens both for the Standard Rails bundle as wel as the rMagick bundle. I have re-downloaded/reinstalled both Locomotive and the bundle (January versions) but to no avail. Can anyone shed any light on this? I am using a MacBook pro (intel). Regards, Brendan From rdm at cfcl.com Fri Feb 2 06:27:14 2007 From: rdm at cfcl.com (Rich Morin) Date: Fri Feb 2 06:27:28 2007 Subject: [Locomotive-users] how to get a new process for each request? Message-ID: I'm running Locomotive with "server: lighttpd" set in locomotive.yml This causes it to run dispatch.fcgi and keep the program running for the duration of the server's run. How would I tell it to run dispatch.cgi and run a new Rails process for each page request? I realize that this will slow things down, but I want to try it for some testing. -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm@cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development From alain.ravet+locomotive at gmail.com Fri Feb 2 13:20:17 2007 From: alain.ravet+locomotive at gmail.com (Alain Ravet) Date: Fri Feb 2 13:20:26 2007 Subject: [Locomotive-users] [Req] dynamic port Message-ID: Request: When a project is [Run], if its port value is empty, use the first available port from 3000. Motivation: Even though my Locomtive folders list is 20+ entries long, I rarely run more than one project at a time. It doesn't make sense to force me to pick a different static address for each project. Alain From alain.ravet+locomotive at gmail.com Fri Feb 2 13:21:04 2007 From: alain.ravet+locomotive at gmail.com (Alain Ravet) Date: Fri Feb 2 13:21:10 2007 Subject: [Locomotive-users] [Req] a way (tags) to filter the project llist. Message-ID: Request: a way (tags) to filter the project llist. Motivation: My Locomtive folders list is 20+ entries long. - At the top, I place the clients' projects I'm working on - Then my personal project - Then the OS project I keep an eye on. That's neither clean nor practical. Alain From alain.ravet+locomotive at gmail.com Fri Feb 2 13:21:54 2007 From: alain.ravet+locomotive at gmail.com (Alain Ravet) Date: Fri Feb 2 13:21:59 2007 Subject: [Locomotive-users] [Req] : project snapshot (zip) Message-ID: Request: a [Snapshot] button in the panel toolbar that archives (zips) the entire project Motivation: When the time between 2 svn commits grows uncomfortably too long (more than 15..30 minutes), I manually make an archive (zip) copy of the entire project. I've automated it through a script that I placed in the dock, but I still need to create one script for each new project so... Minimum features set: - make an archive next to the project (as you would do with the finder) Additionally: - automated snapshot (ex: every 5 minutes) Configuration options : - path (default = [RAILS_ROOT]/..] ) - automated snapshot delay (ex: every 5 minutes) - purge after - new commit - x minutes - only keep the last 5 snapshots. If you press more than 0.5 second on the [Snapshot] button, it should open a context menu - purge All - purge All before last svn commit Alain From alain.ravet+locomotive at gmail.com Fri Feb 2 13:23:22 2007 From: alain.ravet+locomotive at gmail.com (Alain Ravet) Date: Fri Feb 2 13:23:27 2007 Subject: [Locomotive-users] [Req] dynamic port Message-ID: Request: When a project is [Run], if its port value is empty, use the first available port from 3000. Motivation: Even though my Locomtive folders list is 20+ entries long, I rarely run more than one project at a time. It doesn't make sense to force me to pick a different static address for each project. From steve at waits.net Sat Feb 3 17:01:35 2007 From: steve at waits.net (Stephen Waits) Date: Sat Feb 3 17:01:56 2007 Subject: [Locomotive-users] [Req] : project snapshot (zip) In-Reply-To: References: Message-ID: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> On Feb 2, 2007, at 5:21 AM, Alain Ravet wrote: > I've automated it through a script that I placed in > the dock, but I still need to create one script for each new project > so... Why not just write a shell (or perl, python, or ruby) script and drop it in your ~/bin? Then you'd have one script that could work for everything. Though, of course you'd have to run it from the shell, in the base directory of the project you'd want archived. But, to me, that's just about as easy as anything else you might need to do (or easier). --Steve P.S. - the script could look like this: archive.sh ========== #!/bin/sh # where to store the archive (note trailing) ARCHIVE_DIR="~/RailsProjectArchives" # figure out a name, based on current directory + datestamp CWD=`pwd` BASE_CWD=`basename $CWD` DATE=`date +"%F.%R"` ARCHIVE_NAME="$ARCHIVE_DIR/$BASE_CWD.$DATE.tar.gz" # create the archive tar zcvf $ARCHIVE_NAME . From adam at rokslide.com Sun Feb 4 05:27:11 2007 From: adam at rokslide.com (Adam Salter) Date: Sun Feb 4 05:27:24 2007 Subject: [Locomotive-users] [Req] : project snapshot (zip) In-Reply-To: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> References: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> Message-ID: <4A23F3C7-AB1A-4E8E-AC06-6F0A2539FB7E@rokslide.com> I just finished writing a shell script like this which uses Ruby! :) Probably a bit complicated, but maybe not... Requires "session" rubygem archive.rb -------------- #!/usr/bin/env ruby # # Make an archive of the directory from command line # require "FileUtils" require 'rubygems' require 'session' begin if ( ARGV[1] ) raise SystemCallError, "not a directory" if !File.directory? ARGV [1] dir = File.basename(ARGV[1]) date = File.new(dir).mtime.strftime("_%d-%m-%Y") arch_file = '_archive/'+dir+date+'.zip' FileUtils.mkdir '_archive' if !File.directory? '_archive' FileUtils.rm arch_file if File.exists? arch_file sh = Session.new stdout, stderr = sh.execute "tar -czvf #{arch_file} #{dir}" raise SystemCallError, "#{stderr}" if sh.exitstatus != 0 case ARGV[0] when 'cp' when 'mv' FileUtils.rm_r dir end else my_string = < > On Feb 2, 2007, at 5:21 AM, Alain Ravet wrote: > >> I've automated it through a script that I placed in >> the dock, but I still need to create one script for each new project >> so... > > Why not just write a shell (or perl, python, or ruby) script and > drop it in your ~/bin? Then you'd have one script that could work > for everything. > > Though, of course you'd have to run it from the shell, in the base > directory of the project you'd want archived. But, to me, that's > just about as easy as anything else you might need to do (or easier). > > --Steve > > P.S. - the script could look like this: > > archive.sh > ========== > #!/bin/sh > > # where to store the archive (note trailing) > ARCHIVE_DIR="~/RailsProjectArchives" > > # figure out a name, based on current directory + datestamp > CWD=`pwd` > BASE_CWD=`basename $CWD` > DATE=`date +"%F.%R"` > ARCHIVE_NAME="$ARCHIVE_DIR/$BASE_CWD.$DATE.tar.gz" > > # create the archive > tar zcvf $ARCHIVE_NAME . > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From rdm at cfcl.com Sun Feb 4 09:22:18 2007 From: rdm at cfcl.com (Rich Morin) Date: Sun Feb 4 09:31:57 2007 Subject: [Locomotive-users] Locomotive/lighttpd config questions Message-ID: I've got a couple of configuration questions about using lighttpd under Locomotive: * (how) can I cause lighttpd to run each Rails page request as a separate process? It seems like this should be possible, using dispatch.cgi, but I don't know how to get that to run. * Assuming that I have a looong-running Rails app, (how) can I raise the lighttpd timeout to some ridiculous value? I'm getting erratic, timing- dependent "500 - Internal Server Error" messages and I'd like them to go away. -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm@cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development From adam.q.salter at gmail.com Sun Feb 4 05:21:31 2007 From: adam.q.salter at gmail.com (Adam Salter) Date: Sun Feb 4 15:05:00 2007 Subject: [Locomotive-users] [Req] : project snapshot (zip) In-Reply-To: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> References: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> Message-ID: <0C1F1AFC-D4D0-469B-A6D2-E5949766DBE3@gmail.com> I just finished writing a shell script like this which uses Ruby! :) Probably a bit complicated, but maybe not... Requires "session" rubygem archive.rb -------------- #!/usr/bin/env ruby # # Make an archive of the directory from command line # require "FileUtils" require 'rubygems' require 'session' begin if ( ARGV[1] ) raise SystemCallError, "not a directory" if !File.directory? ARGV [1] dir = File.basename(ARGV[1]) date = File.new(dir).mtime.strftime("_%d-%m-%Y") arch_file = '_archive/'+dir+date+'.zip' FileUtils.mkdir '_archive' if !File.directory? '_archive' FileUtils.rm arch_file if File.exists? arch_file sh = Session.new stdout, stderr = sh.execute "tar -czvf #{arch_file} #{dir}" raise SystemCallError, "#{stderr}" if sh.exitstatus != 0 case ARGV[0] when 'cp' when 'mv' FileUtils.rm_r dir end else my_string = < > On Feb 2, 2007, at 5:21 AM, Alain Ravet wrote: > >> I've automated it through a script that I placed in >> the dock, but I still need to create one script for each new project >> so... > > Why not just write a shell (or perl, python, or ruby) script and > drop it in your ~/bin? Then you'd have one script that could work > for everything. > > Though, of course you'd have to run it from the shell, in the base > directory of the project you'd want archived. But, to me, that's > just about as easy as anything else you might need to do (or easier). > > --Steve > > P.S. - the script could look like this: > > archive.sh > ========== > #!/bin/sh > > # where to store the archive (note trailing) > ARCHIVE_DIR="~/RailsProjectArchives" > > # figure out a name, based on current directory + datestamp > CWD=`pwd` > BASE_CWD=`basename $CWD` > DATE=`date +"%F.%R"` > ARCHIVE_NAME="$ARCHIVE_DIR/$BASE_CWD.$DATE.tar.gz" > > # create the archive > tar zcvf $ARCHIVE_NAME . > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From andrew.d.kent at gmail.com Tue Feb 6 16:57:58 2007 From: andrew.d.kent at gmail.com (Andy Kent) Date: Tue Feb 6 17:32:48 2007 Subject: [Locomotive-users] ActiveDirectory and ruby/ldap in Locomotive Message-ID: <4693A26C-F4AB-4F2C-B586-FA8596A5676D@gmail.com> Hi all, I am trying to use the ActiveDirectory gem to handle user logins but it has a dependancy on the ruby/ldap package. I have installed the activedirectory gem but still need to get the ruby/ldap bit sorted, it only seems to be available as source and I am a bit out of my depth as to how I should go about building/ installing this to work within locomotive. Any tips or even better a walkthrough of the process would be very helpful and much appreciated. Active Directory: http://activedirectory.rubyforge.org/ Ruby/LDAP: http://sourceforge.net/projects/ruby-ldap/ Thanks Andy. From mark.m.fredrickson at gmail.com Tue Feb 6 17:47:25 2007 From: mark.m.fredrickson at gmail.com (Mark Fredrickson) Date: Tue Feb 6 17:47:31 2007 Subject: [Locomotive-users] ActiveDirectory and ruby/ldap in Locomotive In-Reply-To: <4693A26C-F4AB-4F2C-B586-FA8596A5676D@gmail.com> References: <4693A26C-F4AB-4F2C-B586-FA8596A5676D@gmail.com> Message-ID: <3db8a8970702060947o12db4144vf5ced81d4c18690b@mail.gmail.com> I would recommend building these dependencies through the macports system: http://www.macports.org/ You'll probably have to play with your environment variables to get the macport installed gems to work with locomotive, but this is still probably your easiest option. Ryan - would it be possible to get a "bundle" for loco that just wraps a macports install? You could probably assume /opt/local as most people just use the standard prefix. (You build the bundles from MP, right?) -Mark On 2/6/07, Andy Kent wrote: > Hi all, > > I am trying to use the ActiveDirectory gem to handle user logins but > it has a dependancy on the ruby/ldap package. > > I have installed the activedirectory gem but still need to get the > ruby/ldap bit sorted, it only seems to be available as source and I > am a bit out of my depth as to how I should go about building/ > installing this to work within locomotive. Any tips or even better a > walkthrough of the process would be very helpful and much appreciated. > > Active Directory: http://activedirectory.rubyforge.org/ > Ruby/LDAP: http://sourceforge.net/projects/ruby-ldap/ > > Thanks > Andy. > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > From alain.ravet at gmail.com Wed Feb 7 00:27:32 2007 From: alain.ravet at gmail.com (Alain Ravet) Date: Wed Feb 7 00:27:38 2007 Subject: [Locomotive-users] [Req] : project snapshot (zip) In-Reply-To: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> References: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> Message-ID: Steve, > On Feb 2, 2007, at 5:21 AM, Alain Ravet wrote: > > I've automated it through a script that I placed in > > the dock, but I still need to create one script for each new project > > so... This 1-click action is my safety net, and it makes me daring more because all it takes is 1 click on a Dock icon. And while it's zipping, I'm sipping. It's a poor man'Undo. I'm surprised not more people do it. In my Java era, I even made a plugin for IDEA that would zip the whole project and send this backup file to your GMail account. With 1 click. > Why not just write a shell (or perl, python, or ruby) script and drop > it in your ~/bin? Then you'd have one script that could work for > everything. > Though, of course you'd have to run it from the shell, in the base That's the whole point: it's too complex - or rather: it could+should be waaaayy simpler -, and if it's complex you don't use it. I prefer to spend a few minutes to create an automator. The biggest problem is wasting space in the Dock for 1 new icon for each project. Alain From steve at waits.net Wed Feb 7 05:04:56 2007 From: steve at waits.net (Stephen Waits) Date: Wed Feb 7 05:05:12 2007 Subject: [Locomotive-users] [Req] : project snapshot (zip) In-Reply-To: References: <0D93D768-40C8-4E18-866E-C659FE608850@waits.net> Message-ID: On Feb 6, 2007, at 4:27 PM, Alain Ravet wrote: > it's too complex - or rather: it could+should > be waaaayy simpler Ok. Well, I cannot think of a better, simpler, solution. Good luck. --Steve From tamosunas at gmail.com Fri Feb 9 17:21:34 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Fri Feb 9 17:21:40 2007 Subject: [Locomotive-users] Configuring existing locomotive app to use a new bundle Message-ID: <6d8b03400702090921h41600f7ia5908f7ec3d9e5ac@mail.gmail.com> I have an existing locomotive application using the /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle and I want it to use the latest bundle. I downloaded and installed the bundle and changes the conf/locomotive.yml file to point to the /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle but when I look in the development log, I still see /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle. Is there another step in changing the bundle for the existing application? Thanks, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070209/ceb73f61/attachment.htm From brendanarnold at gmail.com Fri Feb 9 17:44:30 2007 From: brendanarnold at gmail.com (Brendan Arnold) Date: Fri Feb 9 17:44:35 2007 Subject: [Locomotive-users] Configuring existing locomotive app to use a new bundle In-Reply-To: <6d8b03400702090921h41600f7ia5908f7ec3d9e5ac@mail.gmail.com> References: <6d8b03400702090921h41600f7ia5908f7ec3d9e5ac@mail.gmail.com> Message-ID: <5ed41c130702090944n2224541bl83fcbb823f5e46f9@mail.gmail.com> Try changing the bundle by selecting the app and viewing the Info in the main Locomotive window. There is a drop down box that selects the bundle used. Brendan On 2/9/07, Scott Tamosunas wrote: > I have an existing locomotive application using the > /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle > and I want it to use the latest bundle. > > I downloaded and installed the bundle and changes the conf/locomotive.yml > file to point to the > /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle > but when I look in the development log, I still see > /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle. > > Is there another step in changing the bundle for the existing application? > > Thanks, > > Scott > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > From tamosunas at gmail.com Fri Feb 9 18:16:01 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Fri Feb 9 18:16:07 2007 Subject: [Locomotive-users] Configuring existing locomotive app to use a new bundle In-Reply-To: <5ed41c130702090944n2224541bl83fcbb823f5e46f9@mail.gmail.com> References: <6d8b03400702090921h41600f7ia5908f7ec3d9e5ac@mail.gmail.com> <5ed41c130702090944n2224541bl83fcbb823f5e46f9@mail.gmail.com> Message-ID: <6d8b03400702091016y616c9645w7d7ab4d29db71285@mail.gmail.com> Doh! That did the trick. Thanks. Scott On 2/9/07, Brendan Arnold wrote: > > Try changing the bundle by selecting the app and viewing the Info in > the main Locomotive window. There is a drop down box that selects the > bundle used. > > Brendan > > On 2/9/07, Scott Tamosunas wrote: > > I have an existing locomotive application using the > > /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle > > and I want it to use the latest bundle. > > > > I downloaded and installed the bundle and changes the > conf/locomotive.yml > > file to point to the > > /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle > > but when I look in the development log, I still see > > /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle. > > > > Is there another step in changing the bundle for the existing > application? > > > > Thanks, > > > > Scott > > > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070209/c2b10c87/attachment.htm From robert.sraka at monitor.si Sun Feb 11 23:53:06 2007 From: robert.sraka at monitor.si (Robert) Date: Sun Feb 11 23:55:15 2007 Subject: [Locomotive-users] Re: January Bundle fails References: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> <69AE2563-FA33-410A-8C8F-182763238DF4@gmx.net> <2D763BE3-9FEE-4831-A644-1333177AD3B1@gmx.net> <0306347A-4249-4CB4-8905-DE0F5CBC91CA@gmx.net> Message-ID: Dennis Staiger writes: > > I do not have a log/mongrel.log file - probably because the server > never started up successfully. > > rails -v gives me 1.2.1 > > and > > RAILS_GEM_VERSION is set to '1.2.1' in environment.rb. > > However, I do have success running mongrel manually in the Locomotive > environment terminal, but Mongrel listens on 0.0.0.0:3000 - is this > correct? Here is the output when I start Mongrel: > I had the same problem, but the upgrade of the mongrel solved it. I opened the Terminal from Locomotive (for the project a had problems with) and typed in the following: gem update mongrel Now it works fine. Rg. Robert From greg.hauptmann.ruby at gmail.com Mon Feb 12 20:26:24 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Mon Feb 12 20:26:31 2007 Subject: [Locomotive-users] how do I see standard out for ruby applications that I run up??? Message-ID: Hi, Can someone tell me wiht Locomotive how to do I see standard out for ruby applications that I run up??? e.g. if there's been a problem starting up an application and I want to see the standard out during startup to see what was happening? Tks Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070212/0d47574f/attachment.htm From scott at thisbythem.com Mon Feb 12 23:53:36 2007 From: scott at thisbythem.com (Scott Nelson) Date: Mon Feb 12 23:54:17 2007 Subject: [Locomotive-users] RMagick Rails Bundle Jan 2007 PPC - Peaks CPU and Doesn't Respond Message-ID: <2D30F1C1-3C94-48B8-B10A-D0852F4CFC9A@thisbythem.com> When I hit a part of my app that uses RMagick, the page will not load, it just hangs and my cpu peaks at 100%. Any ideas as to what's going wrong? Thanks, Scott From loriolson at mac.com Mon Feb 12 23:56:58 2007 From: loriolson at mac.com (Lori M Olson) Date: Mon Feb 12 23:57:15 2007 Subject: [Locomotive-users] RMagick Rails Bundle Jan 2007 PPC - Peaks CPU and Doesn't Respond In-Reply-To: <2D30F1C1-3C94-48B8-B10A-D0852F4CFC9A@thisbythem.com> References: <2D30F1C1-3C94-48B8-B10A-D0852F4CFC9A@thisbythem.com> Message-ID: <4425AD13-B9F4-4DF4-9287-BCE600646FAC@mac.com> Are you looking at your log? Does it say anything useful? On 12-Feb-07, at 4:53 PM, Scott Nelson wrote: > When I hit a part of my app that uses RMagick, the page will not > load, it just hangs and my cpu peaks at 100%. Any ideas as to > what's going wrong? > > Thanks, > Scott > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From scott at thisbythem.com Tue Feb 13 00:16:26 2007 From: scott at thisbythem.com (Scott Nelson) Date: Tue Feb 13 00:17:08 2007 Subject: [Locomotive-users] RMagick Rails Bundle Jan 2007 PPC - Peaks CPU and Doesn't Respond In-Reply-To: <4425AD13-B9F4-4DF4-9287-BCE600646FAC@mac.com> References: <2D30F1C1-3C94-48B8-B10A-D0852F4CFC9A@thisbythem.com> <4425AD13-B9F4-4DF4-9287-BCE600646FAC@mac.com> Message-ID: <5C37FA55-1AAA-4E99-BDF9-5E3E06D629E8@thisbythem.com> I've checked all the logs in my [root]/log folder before and after both good and bad requests. It seems as though its not even getting to the point of being able to write something to the log. I'm not getting anything in there, just a smoking cpu until I stop or restart the app. Any specific information you need let me know. Thanks On Feb 12, 2007, at 3:56 PM, Lori M Olson wrote: > Are you looking at your log? Does it say anything useful? > > On 12-Feb-07, at 4:53 PM, Scott Nelson wrote: > >> When I hit a part of my app that uses RMagick, the page will not >> load, it just hangs and my cpu peaks at 100%. Any ideas as to >> what's going wrong? >> >> Thanks, >> Scott >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From scott at thisbythem.com Tue Feb 13 00:19:54 2007 From: scott at thisbythem.com (Scott Nelson) Date: Tue Feb 13 00:20:32 2007 Subject: [Locomotive-users] RMagick Rails Bundle Jan 2007 PPC - Peaks CPU and Doesn't Respond In-Reply-To: <5C37FA55-1AAA-4E99-BDF9-5E3E06D629E8@thisbythem.com> References: <2D30F1C1-3C94-48B8-B10A-D0852F4CFC9A@thisbythem.com> <4425AD13-B9F4-4DF4-9287-BCE600646FAC@mac.com> <5C37FA55-1AAA-4E99-BDF9-5E3E06D629E8@thisbythem.com> Message-ID: I meant to say I'm not getting anything in there on those bad requests. I AM getting stuff in the logs on successful requests. On Feb 12, 2007, at 4:16 PM, Scott Nelson wrote: > I've checked all the logs in my [root]/log folder before and after > both good and bad requests. It seems as though its not even > getting to the point of being able to write something to the log. > I'm not getting anything in there, just a smoking cpu until I stop > or restart the app. > > Any specific information you need let me know. > > Thanks > > On Feb 12, 2007, at 3:56 PM, Lori M Olson wrote: > >> Are you looking at your log? Does it say anything useful? >> >> On 12-Feb-07, at 4:53 PM, Scott Nelson wrote: >> >>> When I hit a part of my app that uses RMagick, the page will not >>> load, it just hangs and my cpu peaks at 100%. Any ideas as to >>> what's going wrong? >>> >>> Thanks, >>> Scott >>> _______________________________________________ >>> Locomotive-users mailing list >>> Locomotive-users@lists.raaum.org >>> http://lists.raaum.org/mailman/listinfo/locomotive-users >> >> _______________________________________________ >> Locomotive-users mailing list >> Locomotive-users@lists.raaum.org >> http://lists.raaum.org/mailman/listinfo/locomotive-users > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From luke.gedeon at gmail.com Sun Feb 18 00:47:59 2007 From: luke.gedeon at gmail.com (Luke Gedeon) Date: Sun Feb 18 00:48:15 2007 Subject: [Locomotive-users] Application not visible on localhost:3000 Message-ID: I installed Locomotive on OS X 10.4. The install went fine and I was able to set up an application however nothing showed up on port 3000 when I ran a port scan on localhost. I also get server not found at 127.0.0.1:3000/ I did start the application I tried changing to port 3001 I tried with and without firewall What should I try next? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/0024a265/attachment.htm From jim at jimjames.org Sun Feb 18 00:56:07 2007 From: jim at jimjames.org (Jim James) Date: Sun Feb 18 00:56:25 2007 Subject: [Locomotive-users] Application not visible on localhost:3000 In-Reply-To: Message-ID: Look in your app?s logs: yourapp/logs/development yourapp/logs/server yourapp/logs/mongrel Sounds like your app has an error that is preventing mongrel (or whatever server you?re using) from serving anything. Funny, this happened to me a few hours ago. Found my error in the mongrel log. Probably need to restart the server (just click the Restart button in the Loco window after highlighting your app if you have several already). Hope it helps. Jim. On 2/17/07 5:47 PM, "Luke Gedeon" wrote: > I installed Locomotive on OS X 10.4. The install went fine and I was able to > set up an application however nothing showed up on port 3000 when I ran a port > scan on localhost. I also get server not found at 127.0.0.1:3000/ > > I did start the application > I tried changing to port 3001 > I tried with and without firewall > What should I try next? > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -- Jim James -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/4d6f2c2c/attachment.htm From tamosunas at gmail.com Sun Feb 18 05:27:28 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Sun Feb 18 05:27:32 2007 Subject: [Locomotive-users] Seeing /:id:format in my production urls Message-ID: <6d8b03400702172127v7abe69dbk1f70446040fa95ed@mail.gmail.com> Hi, On my development server, running locomotive with the latest bundle, everything works fine. When I deploy to my production environment, I see the following in my Urls: www.mysite.com/main/:id:format I am using the same routes file, which is the default routes file. Am I missing a configuration? I also noticed the rails version in the locomotive bundle is 1.2.1 and on my hosting server it's 1.1.6. Thanks, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/5aed1465/attachment.htm From grant at grantneufeld.ca Sun Feb 18 06:21:48 2007 From: grant at grantneufeld.ca (Grant Neufeld) Date: Sun Feb 18 06:22:30 2007 Subject: [Locomotive-users] Seeing /:id:format in my production urls In-Reply-To: <6d8b03400702172127v7abe69dbk1f70446040fa95ed@mail.gmail.com> References: <6d8b03400702172127v7abe69dbk1f70446040fa95ed@mail.gmail.com> Message-ID: At 12:27 AM -0500 2/18/07, Scott Tamosunas wrote: >production environment, I see the following in my Urls: > > www.mysite.com/main/:id:format ... >I also noticed the rails version in the locomotive bundle is 1.2.1 >and on my hosting server it's 1.1.6. That's the problem. Support for mixing colon-separated parameters within a chunk of the url was added in Rails 1.2. In general, it's a _very_ good idea to run with the identical version of Rails on both your development and production systems. You may want to freeze Rails into your project's vendor folder to be certain. From tamosunas at gmail.com Sun Feb 18 14:30:03 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Sun Feb 18 14:30:09 2007 Subject: [Locomotive-users] Seeing /:id:format in my production urls In-Reply-To: References: <6d8b03400702172127v7abe69dbk1f70446040fa95ed@mail.gmail.com> Message-ID: <6d8b03400702180630sa7982e8s7f613a365b125d09@mail.gmail.com> On 2/18/07, Grant Neufeld wrote: > > At 12:27 AM -0500 2/18/07, Scott Tamosunas wrote: > >production environment, I see the following in my Urls: > > > > www.mysite.com/main/:id:format > ... > >I also noticed the rails version in the locomotive bundle is 1.2.1 > >and on my hosting server it's 1.1.6. > > That's the problem. Support for mixing colon-separated parameters > within a chunk of the url was added in Rails 1.2. Ok, how was it done previously? Up in my rhtml file, I am using <%= link_to "personal_projects", :action => "personal_projects" %>, I thought that was fairly standard? In general, it's a _very_ good idea to run with the identical version > of Rails on both your development and production systems. > > You may want to freeze Rails into your project's vendor folder to be > certain. I totally agree, I just found out about the difference on my hosting site. And thanks for the freezing suggestion, that makes sense to me. However, when I run rake rails: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/364ef7e7/attachment.htm From tamosunas at gmail.com Sun Feb 18 14:35:24 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Sun Feb 18 14:35:30 2007 Subject: [Locomotive-users] Seeing /:id:format in my production urls In-Reply-To: <6d8b03400702180630sa7982e8s7f613a365b125d09@mail.gmail.com> References: <6d8b03400702172127v7abe69dbk1f70446040fa95ed@mail.gmail.com> <6d8b03400702180630sa7982e8s7f613a365b125d09@mail.gmail.com> Message-ID: <6d8b03400702180635h2ecfdecbsa55c6c19ff20a658@mail.gmail.com> Sorry, I hit the send button by accident: When I run rake rails:freeze:gems, I get the following error: rake rails:freeze:gems (in /Users/stamosunas/workspaces/ruby/tamosunas.com) /Users/stamosunas/workspaces/ruby/tamosunas.com/config/boot.rb:29:Warning: require_gem is obsolete. Use gem instead. Freezing to the gems for Rails 1.2.1 rm -rf vendor/rails mkdir -p vendor/rails cd vendor/rails ERROR: While executing gem ... (ArgumentError) install directory "activesupport-1.4.0" not absolute rake aborted! exit (See full trace by running task with --trace) My gem env looks like the following: matilda:~/workspaces/ruby/tamosunas.com stamosunas$ gem environment RubyGems Environment: - VERSION: 0.9.1 (0.9.1) - INSTALLATION DIRECTORY: /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8 - GEM PATH: - /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8 - REMOTE SOURCES: - http://gems.rubyforge.org I found this bug report: http://dev.rubyonrails.org/ticket/7322 Any ideas? Thanks again, Scott On 2/18/07, Scott Tamosunas wrote: > > > > On 2/18/07, Grant Neufeld wrote: > > > > At 12:27 AM -0500 2/18/07, Scott Tamosunas wrote: > > >production environment, I see the following in my Urls: > > > > > > www.mysite.com/main/:id:format > > ... > > >I also noticed the rails version in the locomotive bundle is 1.2.1 > > >and on my hosting server it's 1.1.6. > > > > That's the problem. Support for mixing colon-separated parameters > > within a chunk of the url was added in Rails 1.2. > > > Ok, how was it done previously? Up in my rhtml file, I am using <%= > link_to "personal_projects", :action => "personal_projects" %>, I thought > that was fairly standard? > > In general, it's a _very_ good idea to run with the identical version > > of Rails on both your development and production systems. > > > > You may want to freeze Rails into your project's vendor folder to be > > certain. > > > I totally agree, I just found out about the difference on my hosting site. > And thanks for the freezing suggestion, that makes sense to me. However, > when I run rake rails: > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/b6836fc5/attachment.htm From tamosunas at gmail.com Sun Feb 18 14:40:27 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Sun Feb 18 14:40:33 2007 Subject: [Locomotive-users] Freezing rails fails with error install directory "activesupport-1.4.0" not absolute Message-ID: <6d8b03400702180640h3f17286ar53c782e7a5bc956c@mail.gmail.com> Hi, When I try to freeze my rails with the standardRailsJan2007 locomotive bundle, I get the following error: rake rails:freeze:gems, I get the following error: rake rails:freeze:gems (in /Users/stamosunas/workspaces/ruby/tamosunas.com) /Users/stamosunas/workspaces/ruby/tamosunas.com/config/boot.rb:29:Warning: require_gem is obsolete. Use gem instead. Freezing to the gems for Rails 1.2.1 rm -rf vendor/rails mkdir -p vendor/rails cd vendor/rails ERROR: While executing gem ... (ArgumentError) install directory "activesupport-1.4.0" not absolute rake aborted! exit (See full trace by running task with --trace) My gem env looks like the following: matilda:~/workspaces/ruby/tamosunas.com stamosunas$ gem environment RubyGems Environment: - VERSION: 0.9.1 (0.9.1) - INSTALLATION DIRECTORY: /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8 - GEM PATH: - /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8 - REMOTE SOURCES: - http://gems.rubyforge.org I found this bug report: http://dev.rubyonrails.org/ticket/7322 Any ideas? Thanks, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/f0a3e951/attachment.htm From tamosunas at gmail.com Sun Feb 18 14:57:56 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Sun Feb 18 14:58:02 2007 Subject: [Locomotive-users] Re: Freezing rails fails with error install directory "activesupport-1.4.0" not absolute In-Reply-To: <6d8b03400702180640h3f17286ar53c782e7a5bc956c@mail.gmail.com> References: <6d8b03400702180640h3f17286ar53c782e7a5bc956c@mail.gmail.com> Message-ID: <6d8b03400702180657p1c3e65a9y81ae35e5f6bbcf0e@mail.gmail.com> It seems that updating gems to 0.9.2 solves the problem. gem update --system On 2/18/07, Scott Tamosunas wrote: > > Hi, > > When I try to freeze my rails with the standardRailsJan2007 locomotive > bundle, I get the following error: > > rake rails:freeze:gems, I get the following error: > > rake rails:freeze:gems > (in /Users/stamosunas/workspaces /ruby/tamosunas.com) > /Users/stamosunas/workspaces/ruby/tamosunas.com/config/boot.rb:29:Warning: > require_gem is obsolete. Use gem instead. > Freezing to the gems for Rails 1.2.1 > rm -rf vendor/rails > mkdir -p vendor/rails > cd vendor/rails > ERROR: While executing gem ... (ArgumentError) > install directory "activesupport-1.4.0" not absolute > rake aborted! > exit > > (See full trace by running task with --trace) > > My gem env looks like the following: > matilda:~/workspaces/ruby/tamosunas.com stamosunas$ gem environment > RubyGems Environment: > - VERSION: 0.9.1 (0.9.1) > - INSTALLATION DIRECTORY: > /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8 > - GEM PATH: > - > /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8 > > - REMOTE SOURCES: > - http://gems.rubyforge.org > > I found this bug report: > > http://dev.rubyonrails.org/ticket/7322 > > Any ideas? > > Thanks, > > Scott > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070218/97771d9e/attachment.htm From brendanarnold at gmail.com Sun Feb 18 16:58:58 2007 From: brendanarnold at gmail.com (Brendan Arnold) Date: Sun Feb 18 16:59:04 2007 Subject: [Locomotive-users] Re: Proxy problems with Locomotive gem In-Reply-To: <5ed41c130702011315i5c3fd592r86efa445f860cf7b@mail.gmail.com> References: <5ed41c130702011315i5c3fd592r86efa445f860cf7b@mail.gmail.com> Message-ID: <5ed41c130702180858x5bbde3b1g8a2f45326854865e@mail.gmail.com> The September 2006 rMagick bundle works fine. This problem seems to be restricted to the jan 2007 bundles. Could they be recompiled? Brendan On 2/1/07, Brendan Arnold wrote: > Hi there, > > When I try to install a gem (using a Terminal launched from the > Locomotive window, with the correct paths etc) I get the following > error > > Brendan-Arnolds-Computer% sudo gem install login_generator > Password: > Bulk updating Gem source index for: http://gems.rubyforge.org > ERROR: While executing gem ... (Gem::RemoteSourceException) > Error fetching remote gem cache: 407 Proxy Authentication Required > Brendan-Arnolds-Computer% > > $HTTP_PROXY is correctly set for the terminal session. What is bizarre > is that I have compiled my own ruby/gem combo and installed it in > /usr/local, when using an ordinary Terminal session (with /usr/local > first in the $PATH) I have no trouble with the above command - gems > install fine. > > This happens both for the Standard Rails bundle as wel as the rMagick > bundle. I have re-downloaded/reinstalled both Locomotive and the > bundle (January versions) but to no avail. > > Can anyone shed any light on this? > > I am using a MacBook pro (intel). > > Regards, > > Brendan > From ryan.raaum at gmail.com Mon Feb 19 14:06:55 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Mon Feb 19 14:07:04 2007 Subject: [Locomotive-users] Re: Proxy problems with Locomotive gem In-Reply-To: <5ed41c130702180858x5bbde3b1g8a2f45326854865e@mail.gmail.com> References: <5ed41c130702011315i5c3fd592r86efa445f860cf7b@mail.gmail.com> <5ed41c130702180858x5bbde3b1g8a2f45326854865e@mail.gmail.com> Message-ID: On 2/18/07, Brendan Arnold wrote: > > The September 2006 rMagick bundle works fine. This problem seems to be > restricted to the jan 2007 bundles. > > Could they be recompiled? Rails 1.2.2, RubyGems 0.9.2, and an updated mongrel are now out and I think these new releases will solve a lot of problems that have been reported with the Jan2007 bundles. I hope to have a new standard bundle within the week and rmagick bundles to follow soon after. Best, -r Brendan > > On 2/1/07, Brendan Arnold wrote: > > Hi there, > > > > When I try to install a gem (using a Terminal launched from the > > Locomotive window, with the correct paths etc) I get the following > > error > > > > Brendan-Arnolds-Computer% sudo gem install login_generator > > Password: > > Bulk updating Gem source index for: http://gems.rubyforge.org > > ERROR: While executing gem ... (Gem::RemoteSourceException) > > Error fetching remote gem cache: 407 Proxy Authentication Required > > Brendan-Arnolds-Computer% > > > > $HTTP_PROXY is correctly set for the terminal session. What is bizarre > > is that I have compiled my own ruby/gem combo and installed it in > > /usr/local, when using an ordinary Terminal session (with /usr/local > > first in the $PATH) I have no trouble with the above command - gems > > install fine. > > > > This happens both for the Standard Rails bundle as wel as the rMagick > > bundle. I have re-downloaded/reinstalled both Locomotive and the > > bundle (January versions) but to no avail. > > > > Can anyone shed any light on this? > > > > I am using a MacBook pro (intel). > > > > Regards, > > > > Brendan > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://raaum.org http://rails.raaum.org -- Rails docs http://locomotive.raaum.org -- Self contained Rails for Mac OS X -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070219/ec9ebd37/attachment.htm From tamosunas at gmail.com Tue Feb 20 21:36:29 2007 From: tamosunas at gmail.com (Scott Tamosunas) Date: Tue Feb 20 21:36:33 2007 Subject: [Locomotive-users] Locomotive and debugging Message-ID: <6d8b03400702201336o32ff6ac0g765b49daba400d5d@mail.gmail.com> Hi, Has anyone got debugging working with locomotive? If so, do you mind pointing me at the instructions for setting this up? Thanks, Scott From dreamfeed at gmail.com Fri Feb 23 17:00:27 2007 From: dreamfeed at gmail.com (Sam Clearman) Date: Fri Feb 23 17:38:46 2007 Subject: [Locomotive-users] January 2007 Bundle Broken Message-ID: <70ed6cd20702230900w338194c7s4d23942cdf6e8ef6@mail.gmail.com> I was having the same problem as several other users described where the January 2007 bundle would fail to start the server without generating any kind of errror message. I took the suggestion to do gem update mongrel and that worked -- I think the problem was that there were a bunch of dependencies which weren't installed at all. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070223/8706d6eb/attachment.htm From lukhnos at gmail.com Fri Feb 23 18:03:24 2007 From: lukhnos at gmail.com (Lukhnos D. Liu) Date: Fri Feb 23 18:03:30 2007 Subject: [Locomotive-users] January 2007 Bundle Broken In-Reply-To: <70ed6cd20702230900w338194c7s4d23942cdf6e8ef6@mail.gmail.com> References: <70ed6cd20702230900w338194c7s4d23942cdf6e8ef6@mail.gmail.com> Message-ID: On 2/24/07, Sam Clearman wrote: > I was having the same problem as several other users described where the > January 2007 bundle would fail to start the server without generating any > kind of errror message. I took the suggestion to do gem update mongrel and > that worked -- I think the problem was that there were a bunch of > dependencies which weren't installed at all. Strangely enough, those afflicted seemed to be PPC Macs only (I have deployed two Jan 2007 Locomotive bundles on two PPC Macs), whereas Intel Macs just work. After gem update mongrel everything works now and rocks again. :) d. From brendanarnold at gmail.com Fri Feb 23 19:12:24 2007 From: brendanarnold at gmail.com (Brendan Arnold) Date: Fri Feb 23 19:12:29 2007 Subject: [Locomotive-users] January 2007 Bundle Broken In-Reply-To: References: <70ed6cd20702230900w338194c7s4d23942cdf6e8ef6@mail.gmail.com> Message-ID: <5ed41c130702231112g4edecdds276f0d5e449a6a63@mail.gmail.com> I have some trouble with using gem behind a proxy on an intel Mac using the Jan 2007 bundles. No such problem with Sept 2006. Brendan On 2/23/07, Lukhnos D. Liu wrote: > On 2/24/07, Sam Clearman wrote: > > I was having the same problem as several other users described where the > > January 2007 bundle would fail to start the server without generating any > > kind of errror message. I took the suggestion to do gem update mongrel and > > that worked -- I think the problem was that there were a bunch of > > dependencies which weren't installed at all. > > Strangely enough, those afflicted seemed to be PPC Macs only (I have > deployed two Jan 2007 Locomotive bundles on two PPC Macs), whereas > Intel Macs just work. > > After gem update mongrel everything works now and rocks again. :) > > d. > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > From ryan.raaum at gmail.com Fri Feb 23 23:19:48 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Fri Feb 23 23:19:54 2007 Subject: [Locomotive-users] January 2007 Bundle Broken In-Reply-To: <5ed41c130702231112g4edecdds276f0d5e449a6a63@mail.gmail.com> References: <70ed6cd20702230900w338194c7s4d23942cdf6e8ef6@mail.gmail.com> <5ed41c130702231112g4edecdds276f0d5e449a6a63@mail.gmail.com> Message-ID: On 2/23/07, Brendan Arnold wrote: > I have some trouble with using gem behind a proxy on an intel Mac > using the Jan 2007 bundles. No such problem with Sept 2006. I suspect that's a rubygems issue ... but there is a newer rubygems now and I am in the midst of making updated bundles. (It's been a little slow as I was travelling on a job interview last week and I'm travelling with my wife to her job interview this coming week). Best, -r > > Brendan > > On 2/23/07, Lukhnos D. Liu wrote: > > On 2/24/07, Sam Clearman wrote: > > > I was having the same problem as several other users described where the > > > January 2007 bundle would fail to start the server without generating any > > > kind of errror message. I took the suggestion to do gem update mongrel and > > > that worked -- I think the problem was that there were a bunch of > > > dependencies which weren't installed at all. > > > > Strangely enough, those afflicted seemed to be PPC Macs only (I have > > deployed two Jan 2007 Locomotive bundles on two PPC Macs), whereas > > Intel Macs just work. > > > > After gem update mongrel everything works now and rocks again. :) > > > > d. > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -- Ryan Raaum http://raaum.org http://rails.raaum.org -- Rails docs http://locomotive.raaum.org -- Self contained Rails for Mac OS X From myobie at mac.com Sun Feb 25 20:17:22 2007 From: myobie at mac.com (Nathan Herald) Date: Sun Feb 25 20:17:54 2007 Subject: [Locomotive-users] Beast Forum Message-ID: When I attempt to run the migration with the command rake db:schema:load RAILS_ENV=production I get some errors that appear to be related to loading YAML files. Anyone got beast running in locomotive? Take it easy. -- Nathan Herald From tomawng at yahoo.fr Mon Feb 26 01:48:59 2007 From: tomawng at yahoo.fr (tom wang) Date: Mon Feb 26 01:49:05 2007 Subject: [Locomotive-users] Locomotive's ruby on rails installation too slow Message-ID: <434534.89934.qm@web23409.mail.ird.yahoo.com> Hi, For some reason when I'm using the ruby snapshot installed by locomotive on mac os x, it's extremely slow. To give you an example, the command mongrel_rails takes 1.7 seconds to show me the arguments list and the console takes about 6 seconds to load On the vps I rented, it takes about 0.17 seconds and 0.25 seconds respectively (and it's a low end 20 dollars a month vps) I'm using an ibook G4 1.2 Ghz with 1.25 gb ram.... Does anybody have any idea on how to solve it ? Thanks ___________________________________________________________________________ D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos questions ! Profitez des connaissances, des opinions et des exp?riences des internautes sur Yahoo! Questions/R?ponses http://fr.answers.yahoo.com From samuel.linde at gmail.com Mon Feb 26 15:37:13 2007 From: samuel.linde at gmail.com (Samuel Linde) Date: Mon Feb 26 15:37:24 2007 Subject: [Locomotive-users] Problem with :belongs_to relation Message-ID: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> Hi, I don't know if this is a problem that has to do with Locomotive, MySQL, or just myself, but I figured there might be someone on the list who knows what to do. I've set up two models, Customer and Booking, with a has_many - belongs_to relationship. I have a list view for my BookingsController which shows the customer's name for each booking record, via booking.customer.name. Here comes the weird part. The first time I call my list function in the BookingsController, the page loads fine and shows the customer's name correctly, but on subsequent browser reloads, I get a "NoMethodError", stating "undefined method `customer' for #". I have to kill my ruby process and restart the Rails app in Locomotive to make it work again. Only to break on subsequent reloads, of course. Does anyone know where I should start looking? Thanks in advance, /Samuel Linde From steve at waits.net Mon Feb 26 16:29:17 2007 From: steve at waits.net (Stephen Waits) Date: Mon Feb 26 16:29:26 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> Message-ID: <4088086A-F333-471C-8249-E9A46DA6978D@waits.net> On Feb 26, 2007, at 7:37 AM, Samuel Linde wrote: > I've set up two models, Customer and Booking, with a has_many - > belongs_to relationship. > I have a list view for my BookingsController which shows the > customer's name for each booking record, > via booking.customer.name. Hi Samuel, I'm certain we can help. Can you please explain your schema and the Customer/Booking relationship in a little bit more detail? Thanks, Steve From samuel.linde at gmail.com Mon Feb 26 16:47:24 2007 From: samuel.linde at gmail.com (Samuel Linde) Date: Mon Feb 26 16:47:42 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <4088086A-F333-471C-8249-E9A46DA6978D@waits.net> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> <4088086A-F333-471C-8249-E9A46DA6978D@waits.net> Message-ID: Hi Steve! Thanks for your reply. I'll try to give you more info about it. The schema looks like this: create_table "customers", :force => true do |t| t.column "kind", :string t.column "company_name", :string t.column "first_name", :string ... end create_table "bookings", :force => true do |t| t.column "customer_id", :integer t.column "kind", :string t.column "status", :string ... end And my classes: booking.rb class Booking < ActiveRecord::Base belongs_to :customer has_many :booking_events ... end customer.rb class Customer < ActiveRecord::Base has_many :customer_phones has_many :customer_events has_many :bookings end Pretty basic things, which makes me quite puzzled about what's going on. :-) Thanks for taking your time! /Samuel 26 feb 2007 kl. 17.29 skrev Stephen Waits: > > On Feb 26, 2007, at 7:37 AM, Samuel Linde wrote: > >> I've set up two models, Customer and Booking, with a has_many - >> belongs_to relationship. >> I have a list view for my BookingsController which shows the >> customer's name for each booking record, >> via booking.customer.name. > > Hi Samuel, > > I'm certain we can help. Can you please explain your schema and > the Customer/Booking relationship in a little bit more detail? > > Thanks, > Steve > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From steve at waits.net Mon Feb 26 18:23:01 2007 From: steve at waits.net (Stephen Waits) Date: Mon Feb 26 18:23:11 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> Message-ID: <45E32585.6090208@waits.net> Samuel Linde wrote: > > I've set up two models, Customer and Booking, with a has_many - > belongs_to relationship. Ok yes, your schema all looks to be pretty basic, as you say. > Here comes the weird part. The first time I call my list function in the > BookingsController, the page loads fine and shows the customer's name > correctly, but on subsequent browser reloads, I get a "NoMethodError", > stating "undefined method `customer' for #". I have > to kill my ruby process and restart the Rails app in Locomotive to make > it work again. Only to break on subsequent reloads, of course. > > Does anyone know where I should start looking? Booking#customer should be added to the class by the belongs_to call. Basically, no, I'm not sure what might cause this, but I'm wondering if you can try playing with some of this from script/console? script/console b = Booking.find(:first) b.customer? b.customer.nil? b.customer Just wondering if that works, and then repeatedly, from script/console? If so, then you might further try it with more than just :first.. i.e. Booking.find(:all).each { |b| puts b.customer.name if b.customer? } If so, then it would seem that maybe something's going on with mongrel/lighttpd/webrick. --Steve From samuel.linde at gmail.com Mon Feb 26 19:24:39 2007 From: samuel.linde at gmail.com (Samuel Linde) Date: Mon Feb 26 19:24:54 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <45E32585.6090208@waits.net> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> <45E32585.6090208@waits.net> Message-ID: <026377C2-93FE-4BB9-A6D5-DF0853764E1A@gmail.com> Hi again, Stephen, Again, thanks for taking your time helping me through this. Booking.find(:first) returns the first object, as suspected. > b.customer? This method returns the following: ArgumentError: wrong number of arguments (0 for 1) from /Applications/Locomotive2/Bundles/ rmagickRailsJan2007_x86.locobundle/framework/lib/ruby/gems/1.8/gems/ activesupport-1.4.0/lib/active_support/deprecation.rb:93:in `customer_without_deprecation?' from /Applications/Locomotive2/Bundles/ rmagickRailsJan2007_x86.locobundle/framework/lib/ruby/gems/1.8/gems/ activesupport-1.4.0/lib/active_support/deprecation.rb:93:in `customer?' from (irb):2 > b.customer.nil? Returns false. > b.customer Returns the customer object. > Booking.find(:all).each { |b| puts b.customer.name if b.customer? } Also returns ArgumentError: ArgumentError: wrong number of arguments (0 for 1) from /Applications/Locomotive2/Bundles/ rmagickRailsJan2007_x86.locobundle/framework/lib/ruby/gems/1.8/gems/ activesupport-1.4.0/lib/active_support/deprecation.rb:93:in `customer_without_deprecation?' from /Applications/Locomotive2/Bundles/ rmagickRailsJan2007_x86.locobundle/framework/lib/ruby/gems/1.8/gems/ activesupport-1.4.0/lib/active_support/deprecation.rb:93:in `customer?' from (irb):5 from (irb):5:in `each' from (irb):5 /Samuel From steve at waits.net Mon Feb 26 19:40:12 2007 From: steve at waits.net (Stephen Waits) Date: Mon Feb 26 19:40:19 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <026377C2-93FE-4BB9-A6D5-DF0853764E1A@gmail.com> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> <45E32585.6090208@waits.net> <026377C2-93FE-4BB9-A6D5-DF0853764E1A@gmail.com> Message-ID: <45E3379C.3060604@waits.net> Samuel Linde wrote: > >> b.customer? > > This method returns the following: > ArgumentError: wrong number of arguments (0 for 1) Whoops.. the customer? method is actually equivalent to b.customer == some_other_customer.. I told you to use it wrong. My bad.. So does this work ok? Booking.find(:all).each { |b| puts b.customer.company_name unless b.customer.nil? } How about this? nil_bookings = Booking.find(:all).select { |b| b.customer.nil? } nil_bookings.size I suspect things are working Ok on the Rails end of the world for you. --Steve From samuel.linde at gmail.com Mon Feb 26 20:35:25 2007 From: samuel.linde at gmail.com (Samuel Linde) Date: Mon Feb 26 20:35:38 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <45E3379C.3060604@waits.net> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> <45E32585.6090208@waits.net> <026377C2-93FE-4BB9-A6D5-DF0853764E1A@gmail.com> <45E3379C.3060604@waits.net> Message-ID: <87199D3F-DBC4-4B95-9DC6-12FDB0E07820@gmail.com> > So does this work ok? > > Booking.find(:all).each { |b| puts b.customer.company_name unless > b.customer.nil? } Yes, it prints out the company_name nicely. > How about this? > > nil_bookings = Booking.find(:all).select { |b| b.customer.nil? } Empty array. Therefor, > nil_bookings.size returns 0. So, do you is it a problem with mongrel? I'm using the latest RMagick bundle from the Locomotive website. I've tried with the latest edge as well, nothing seems to help. Isn't it odd that it works the first time I call the method, but all the subsequent returns an error? Is there something else I could try in the db schema? Should I add foreign key restraints? Thanks. /Samuel > > I suspect things are working Ok on the Rails end of the world for you. > > --Steve > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From steve at waits.net Mon Feb 26 22:01:24 2007 From: steve at waits.net (Stephen Waits) Date: Mon Feb 26 22:01:33 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <87199D3F-DBC4-4B95-9DC6-12FDB0E07820@gmail.com> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> <45E32585.6090208@waits.net> <026377C2-93FE-4BB9-A6D5-DF0853764E1A@gmail.com> <45E3379C.3060604@waits.net> <87199D3F-DBC4-4B95-9DC6-12FDB0E07820@gmail.com> Message-ID: <45E358B4.103@waits.net> Samuel Linde wrote: > So, do you is it a problem with mongrel? I'm using the latest RMagick > bundle from the Locomotive website. I've tried with the latest edge as > well, nothing seems to help. > > Isn't it odd that it works the first time I call the method, but all the > subsequent returns an error? > Is there something else I could try in the db schema? Should I add > foreign key restraints? Yes it is weird. I suggest you try using different web servers. For example, try launching script/server from the command line. You can have it use lighttpd or webrick. Or, try running mongrel_rails from the command line. Also, you might do a "gem update -y". --Steve From samuel.linde at gmail.com Tue Feb 27 06:22:58 2007 From: samuel.linde at gmail.com (Samuel Linde) Date: Tue Feb 27 06:23:10 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: <45E358B4.103@waits.net> References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> <45E32585.6090208@waits.net> <026377C2-93FE-4BB9-A6D5-DF0853764E1A@gmail.com> <45E3379C.3060604@waits.net> <87199D3F-DBC4-4B95-9DC6-12FDB0E07820@gmail.com> <45E358B4.103@waits.net> Message-ID: Hi again, Just wanted to let you know that I think I traced the source of the problem. In application_controller.rb, I had an "include" statement that somehow appeared outside of the ApplicationController class, which when I got rid of it seemed to fix the problem. I guess it didn't occur to me that I could perhaps look there. :-/ Well, I guess I've learned something, and my trips to the console certainly made me discover a valuable tool. Again, thanks for your help! /Samuel 26 feb 2007 kl. 23.01 skrev Stephen Waits: > Samuel Linde wrote: >> So, do you is it a problem with mongrel? I'm using the latest >> RMagick bundle from the Locomotive website. I've tried with the >> latest edge as well, nothing seems to help. >> Isn't it odd that it works the first time I call the method, but >> all the subsequent returns an error? >> Is there something else I could try in the db schema? Should I add >> foreign key restraints? > > Yes it is weird. > > I suggest you try using different web servers. For example, try > launching script/server from the command line. You can have it use > lighttpd or webrick. Or, try running mongrel_rails from the > command line. > > Also, you might do a "gem update -y". > > --Steve > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From steve at waits.net Tue Feb 27 07:00:38 2007 From: steve at waits.net (Stephen Waits) Date: Tue Feb 27 07:00:46 2007 Subject: [Locomotive-users] Problem with :belongs_to relation In-Reply-To: References: <112541EF-D8C8-416B-B9FC-F6AD72131712@gmail.com> <45E32585.6090208@waits.net> <026377C2-93FE-4BB9-A6D5-DF0853764E1A@gmail.com> <45E3379C.3060604@waits.net> <87199D3F-DBC4-4B95-9DC6-12FDB0E07820@gmail.com> <45E358B4.103@waits.net> Message-ID: <0E52FE40-1784-4EDB-819E-AC466D0CEC64@waits.net> On Feb 26, 2007, at 10:22 PM, Samuel Linde wrote: > Well, I guess I've learned something, and my trips to the console > certainly made me discover a valuable tool. Excellent. Glad to hear you got it worked out. script/console is definitely your friend in Rails development. --Steve From malavoi at gmail.com Tue Feb 27 20:20:24 2007 From: malavoi at gmail.com (Bolo Michelin) Date: Wed Feb 28 13:48:02 2007 Subject: [Locomotive-users] Deploy & Mongrel_Cluster Message-ID: Hello, I use last version of locomotive Rails 1.2.2 Capistrano 1.4 When i was deploing , i have this error $ cap deploy /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/ i386/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- mongrel_cluster/ recipes (LoadError) from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/configuration.rb:202:in `require' from ./config/deploy.rb:1:in `load' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/configuration.rb:147:in `load' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/configuration.rb:126:in `load' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/configuration.rb:126:in `each' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/configuration.rb:126:in `load' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/cli.rb:264:in `execute_recipes!' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/cli.rb:264:in `each' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/cli.rb:264:in `execute_recipes!' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/cli.rb:239:in `execute!' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/lib/ruby/gems/1.8/gems/ capistrano-1.4.1/lib/capistrano/cli.rb:12:in `execute!' from / Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/ lib/ruby/gems/1.8/gems/capistrano-1.4.1/bin/cap:11 from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/bin/cap:16:in `load' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/i386/bin/cap:16 pc-mq-dsi3:~/Documents/Coding-Dev/Blog bmichelin$ thanks