From rdm at cfcl.com Sat Jan 6 22:47:42 2007 From: rdm at cfcl.com (Rich Morin) Date: Sat Jan 6 22:49:28 2007 Subject: [Locomotive-users] Locomotive and Apache? Message-ID: We're running a Mac mini as (among other things) our web server. We migrated over from FreeBSD, configuring the OSX Apache server to find files in conventional locations. Now I'm looking into adding Locomotive to the mix. For testing, I'm happy to use mongrel. However, if I want to make some Rails pages available to the outside world (on port 80, without clobbering our other web pages), I'll be needing to tie Rails into the existing Apache setup. Goggling around, I see assorted folks asking about this, but few answers. However, I did find these notes: http://bryan.e4industries.com?p=6 Before I leap off into following this approach, has anyone got any comments and/or suggestions to offer? -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 grant at grantneufeld.ca Sun Jan 7 00:11:48 2007 From: grant at grantneufeld.ca (Grant Neufeld) Date: Sun Jan 7 00:12:27 2007 Subject: [Locomotive-users] Locomotive and Apache? In-Reply-To: References: Message-ID: At 2:47 PM -0800 1/6/07, Rich Morin wrote: >Now I'm looking into adding Locomotive to the mix. ... >I'll be needing to tie Rails into the existing Apache setup. Here's a (kind of) quick and dirty way (no software installs/builds except your existing apache, Locomotive and a simple StartupItem). 1) Setup your app in Locomotive and make special note of the Port used (default 3000). 2) Create virtual host entries in your httpd.conf (or a linked .conf file) that proxies to the Locomotive (mongrel) http port: ServerName your.virtual.host.name.tld ServerAdmin your-admin-email@youremailhost.tld ErrorLog /dev/null CustomLog /dev/null common ProxyRequests Off ProxyPreserveHost On ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ Note that the Port from Locomotive is referenced in ProxyPass and ProxyPassReverse. 127.0.0.1 being the localhost self-referential ip address. I have Apache's logging off here (/dev/null) because the Rails app generates its own logs. If you want Apache to generate access and error logs, then change those options. To relaunch Apache with this new config, just: sudo apachectl graceful However, you may want to test the config first, to make sure it's correct: sudo apachectl configtest 3) Setup a StartupItem to have your Locomotive app set to start on system launch. System-wide custom StartupItems are found in /Library/StartupItems/. I've got an example at: http://www.grantneufeld.ca/file/grant/LocomotiveStartupItem.zip Edit the LocomotiveStartupItem file to configure the path(s) of your Locomotive-run Rails site(s). Copy the LocomotiveStartupItem folder to /Library/StartupItems/ You'll also need to set the owner to root and the group to wheel: sudo chown -R -P root:wheel LocomotiveStartupItem/ (I'm also attaching the text of the two files that are found in the LocomotiveStartupItem folder so you don't need to download them separately.) With that in place, you can restart your Mac server and have your Locomotive site(s) run without having to login or run Locomotive manually. You can get things going without having to restart your Mac. From the command line terminal: cd /path/to/your/rails/site/root/ sudo locomotive start Replacing "start" with "stop" will halt your rails site. Replacing "start" with "restart" will reload your site (useful if you've updated any of the scripts and are running in "production" mode rather than "development"). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /Library/StartupItems/LocomotiveStartupItem/LocomotiveStartupItem: #!/bin/sh # # /Library/StartupItems/LocomotiveStartupItem/LocomotiveStartupItem # # A script to automatically start up Ruby on Rails websites, # using Locomotive, on system bootup for Mac OS X. # # CONFIGURATION: # # Edit the "RAILS SITE PATHS" and the "COMMANDS" below # # Show usage when no command option was given if [ -z $1 ] ; then echo "Usage: $0 [start|stop|restart] " exit 1 fi # Source the common setup functions for startup scripts test -r /etc/rc.common || exit 1 . /etc/rc.common # The path to your locomotive command-line tool SCRIPT="/usr/local/bin/locomotive" ### RAILS SITE PATHS: ### # The paths to your rails sites, one per site RAILSROOT1="/Users/someuser/Sites/railsapp1" #RAILSROOT2="/Users/someuser/Sites/railsapp2" ### COMMANDS: ### StartService () { ConsoleMessage "Starting Ruby on Rails website" cd $RAILSROOT1 $SCRIPT start > /dev/null 2>&1 # repeat for each rails site path #cd $RAILSROOT2 #$SCRIPT start > /dev/null 2>&1 } StopService () { ConsoleMessage "Stopping CHAI on Rails website" cd $RAILSROOT1 $SCRIPT stop > /dev/null 2>&1 # repeat for each rails site path #cd $RAILSROOT2 #$SCRIPT stop > /dev/null 2>&1 } RestartService () { ConsoleMessage "Restarting CHAI on Rails website" cd $RAILSROOT1 $SCRIPT restart > /dev/null 2>&1 # repeat for each rails site path #cd $RAILSROOT2 #$SCRIPT restart > /dev/null 2>&1 } if test -x $SCRIPT ; then RunService "$1" else ConsoleMessage "Could not find locomotive command!" fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /Library/StartupItems/LocomotiveStartupItem/StartupParameters.plist: Description Rails Websites on Locomotive OrderPreference None Provides RailsWebsites Uses Network Resolver From rdm at cfcl.com Sun Jan 7 00:30:26 2007 From: rdm at cfcl.com (Rich Morin) Date: Sun Jan 7 00:36:59 2007 Subject: [Locomotive-users] Locomotive and Apache? In-Reply-To: References: Message-ID: At 5:11 PM -0700 1/6/07, Grant Neufeld wrote: > At 2:47 PM -0800 1/6/07, Rich Morin wrote: >>Now I'm looking into adding Locomotive to the mix. > ... >>I'll be needing to tie Rails into the existing Apache setup. > > Here's a (kind of) quick and dirty way ... A famous aphorism of Butler Lampson goes: All problems in computer science can be solved by another level of indirection. -- http://en.wikipedia.org/wiki/Abstraction_layer I like it. One nice thing about the approach is that I can have an arbitrary number of RoR (or whatever) servers. All I have to do to add a server is (basically) assign a unique port number and create a new virtual host. Anyone have any caveats to offer about this approach? -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 ryan.raaum at gmail.com Sun Jan 7 02:04:37 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Sun Jan 7 02:04:42 2007 Subject: [Locomotive-users] Locomotive and Apache? In-Reply-To: References: Message-ID: On 1/6/07, Rich Morin wrote: > > At 5:11 PM -0700 1/6/07, Grant Neufeld wrote: > > At 2:47 PM -0800 1/6/07, Rich Morin wrote: > >>Now I'm looking into adding Locomotive to the mix. > > ... > >>I'll be needing to tie Rails into the existing Apache setup. > > > > Here's a (kind of) quick and dirty way ... > > A famous aphorism of Butler Lampson goes: > > All problems in computer science can be solved > by another level of indirection. > > -- http://en.wikipedia.org/wiki/Abstraction_layer > > I like it. One nice thing about the approach is that I can > have an arbitrary number of RoR (or whatever) servers. All > I have to do to add a server is (basically) assign a unique > port number and create a new virtual host. > > Anyone have any caveats to offer about this approach? You'll have to install the command line tool first (from the Help menu in Locomotive). Other than that, it should work well - this is more or less the reason for the existence of the command line locomotive tool... -r -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 > _______________________________________________ > 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/20070107/4841514e/attachment.htm From chris at integralimpressions.com Mon Jan 8 08:44:07 2007 From: chris at integralimpressions.com (Chris Abad) Date: Mon Jan 8 08:44:14 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION Message-ID: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> Question, using Locomotive's setup (I'm assuming just a straight connection to a single mongrel instance), is it possible to set the HTTP_AUTHORIZATION header from a URL like this: http://admin:admin@localhost:3000/ I'm not really sure where to look for this answer partly b/c I'm not sure which program is responsible for setting this information w/ Locomotive's setup. Is it Mongrel? Thanks for the help. From marston at sugarstats.com Mon Jan 8 21:05:07 2007 From: marston at sugarstats.com (Marston Alfred) Date: Mon Jan 8 21:06:33 2007 Subject: [Locomotive-users] Problems using Locomotive with Frozen Rails? Message-ID: <4e83715e0701081305t142068a0v96377f97223ae17a@mail.gmail.com> I'm just wondering if anyone else has had issues running an app in locomotive where they have Rails frozen in the vendor dir? It might just be my app but I thought I'd ask, as soon as I freeze rails (1.1.6 or 1.2RC2) it fubar's and my app won't start. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070108/d986b024/attachment.htm From chris at integralimpressions.com Tue Jan 9 00:10:17 2007 From: chris at integralimpressions.com (Chris Abad) Date: Tue Jan 9 00:11:44 2007 Subject: [Locomotive-users] memory issues? Message-ID: <7DC8F330-A8B1-4E18-8534-A2652F989670@integralimpressions.com> I seem to be having an issue where Locomotive will gradually consume quite a bit of memory. Right now I've killed all running apps and its still taking up 500mb+ of memory. Restarting helps, but it'd be nice not to have this issue. Any idea? Anyone else have this issue? From info at paulwillis.com Tue Jan 9 11:43:22 2007 From: info at paulwillis.com (Paul Willis) Date: Tue Jan 9 11:44:52 2007 Subject: [Locomotive-users] Locomotive quits on startup Message-ID: <37BDB453-E2EB-4E59-A47E-9AF22D24CDDF@paulwillis.com> Hi Locomotive quits on startup with the standard message "The application Locomotive quit unexpectedly" and the options to 'Close', 'Report...' or 'Reopen'. I am booted from an external Firewire hard drive and am running OS X 10.4.8 with all the software updates. I have tried from two different Macs, a G5 and a G4. I have tried downloading again. I have run this download successfully on my colleague's Mac. The external drive is a long story involving a PowerBook and some water so I don't have the option of using an internal drive at the moment but could this be the problem? Does Locomotive need anything specific installed already? I ask because I had installed Ruby, Rails, Gems, MySQL etc 'the hard way' via the terminal. Unfortunately I managed to mess this up (hence trying Locmotive now) and then tried deleting stuff I had installed, I am worried that I have deleted something Locomotive is assuming I have. Cheers Paul From steve at talcottsystems.com Tue Jan 9 14:44:21 2007 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Tue Jan 9 14:45:50 2007 Subject: [Locomotive-users] memory issues? In-Reply-To: <7DC8F330-A8B1-4E18-8534-A2652F989670@integralimpressions.com> References: <7DC8F330-A8B1-4E18-8534-A2652F989670@integralimpressions.com> Message-ID: I had this issue when I had a recursive rendering of partials. Steven Talcott Smith On Jan 8, 2007, at 7:10 PM, Chris Abad wrote: > I seem to be having an issue where Locomotive will gradually > consume quite a bit of memory. Right now I've killed all running > apps and its still taking up 500mb+ of memory. Restarting helps, > but it'd be nice not to have this issue. Any idea? Anyone else have > this issue? > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ryan.raaum at gmail.com Tue Jan 9 16:04:10 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 9 16:05:41 2007 Subject: [Locomotive-users] Locomotive quits on startup In-Reply-To: <37BDB453-E2EB-4E59-A47E-9AF22D24CDDF@paulwillis.com> References: <37BDB453-E2EB-4E59-A47E-9AF22D24CDDF@paulwillis.com> Message-ID: Hi Paul, Are there any (more informative) messages on the system console (/Applications/Utilities/Console.app)? Are there any spaces in the name of your external drive? Did you delete ruby altogether from your system (i.e. if you open a terminal and type "which ruby", what do you see?) Best, -r On 1/9/07, Paul Willis wrote: > > Hi > > Locomotive quits on startup with the standard message "The > application Locomotive quit unexpectedly" and the options to 'Close', > 'Report...' or 'Reopen'. > > I am booted from an external Firewire hard drive and am running OS X > 10.4.8 with all the software updates. I have tried from two different > Macs, a G5 and a G4. I have tried downloading again. I have run this > download successfully on my colleague's Mac. > > The external drive is a long story involving a PowerBook and some > water so I don't have the option of using an internal drive at the > moment but could this be the problem? > > Does Locomotive need anything specific installed already? I ask > because I had installed Ruby, Rails, Gems, MySQL etc 'the hard way' > via the terminal. Unfortunately I managed to mess this up (hence > trying Locmotive now) and then tried deleting stuff I had installed, > I am worried that I have deleted something Locomotive is assuming I > have. > > Cheers > > Paul > _______________________________________________ > 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/20070109/eb1d3688/attachment.htm From ryan.raaum at gmail.com Tue Jan 9 16:05:55 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 9 16:07:50 2007 Subject: [Locomotive-users] Problems using Locomotive with Frozen Rails? In-Reply-To: <4e83715e0701081305t142068a0v96377f97223ae17a@mail.gmail.com> References: <4e83715e0701081305t142068a0v96377f97223ae17a@mail.gmail.com> Message-ID: Hi, On 1/8/07, Marston Alfred wrote: > > I'm just wondering if anyone else has had issues running an app in > locomotive where they have Rails frozen in the vendor dir? It might just be > my app but I thought I'd ask, as soon as I freeze rails (1.1.6 or 1.2RC2 ) > it fubar's and my app won't start. What error messages do you see if you try to open the rails console? (i.e. open a Terminal from Locomotive and type "ruby script/console") What error messages do you see if you start mongrel directly from the command line? (open a Terminal and type "mongrel_rails start") Best, -r _______________________________________________ > 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/20070109/4cc649c0/attachment.htm From ryan.raaum at gmail.com Tue Jan 9 16:07:00 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 9 16:08:31 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION In-Reply-To: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> References: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> Message-ID: On 1/8/07, Chris Abad wrote: > > Question, using Locomotive's setup (I'm assuming just a straight > connection to a single mongrel instance), is it possible to set the > HTTP_AUTHORIZATION header from a URL like this: > > http://admin:admin@localhost:3000/ > > I'm not really sure where to look for this answer partly b/c I'm not > sure which program is responsible for setting this information w/ > Locomotive's setup. Is it Mongrel? What happens if you try? Have you checked what makes it into the headers in the controller? Best, -r Thanks for the help. > _______________________________________________ > 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/20070109/d56e4c0b/attachment.htm From chris at integralimpressions.com Tue Jan 9 16:26:05 2007 From: chris at integralimpressions.com (Chris Abad) Date: Tue Jan 9 16:27:33 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION In-Reply-To: References: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> Message-ID: <754D12D8-F14A-4544-B83F-7A342E41076F@integralimpressions.com> I've tried hitting the URL I mentioned earlier and printing out the request.env information into the logs. The user/pass don't show up at all. On Jan 9, 2007, at 8:07 AM, Ryan Raaum wrote: > > > On 1/8/07, Chris Abad wrote: > Question, using Locomotive's setup (I'm assuming just a straight > connection to a single mongrel instance), is it possible to set the > HTTP_AUTHORIZATION header from a URL like this: > > http://admin:admin@localhost:3000/ > > I'm not really sure where to look for this answer partly b/c I'm not > sure which program is responsible for setting this information w/ > Locomotive's setup. Is it Mongrel? > > What happens if you try? Have you checked what makes it into the > headers in the controller? > > Best, > > -r > > Thanks for the help. > _______________________________________________ > 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 > _______________________________________________ > 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/20070109/bfe1b4ce/attachment.htm From info at paulwillis.com Tue Jan 9 16:28:04 2007 From: info at paulwillis.com (Paul Willis) Date: Tue Jan 9 16:29:34 2007 Subject: [Locomotive-users] Locomotive quits on startup In-Reply-To: References: <37BDB453-E2EB-4E59-A47E-9AF22D24CDDF@paulwillis.com> Message-ID: <6A9963FB-8B33-4FA4-950F-3C8E29E6F89F@paulwillis.com> Hi Hmm I seem to have failed (or is that succeeded) on all 3 counts... 1. From the system console... env: ruby: No such file or directory 2007-01-09 16:18:45.720 Locomotive[645] An uncaught exception was raised 2007-01-09 16:18:45.757 Locomotive[645] *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value 2007-01-09 16:18:45.758 Locomotive[645] *** Uncaught exception: *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil value Jan 9 16:19:22 Paul crashdump[648]: Locomotive crashed Jan 9 16:19:29 Paul crashdump[648]: crash report written to: /Users/ paul/Library/Logs/CrashReporter/Locomotive.crash.log 2. There are spaces in the drive name 'Macintosh HD 160' 3. Typing "which ruby" into a terminal window just brings back the prompt. So I have definitely deleted ruby (I was pretty sure I had anyway) I thought Locomotive had 'everything' I needed. I guess I need to re-install ruby. Anything else I might need in there? Any recommendations as to the easiest way to fix this? I have read good stuff about MacPorts Cheers Paul On 9 Jan 2007, at 16:04, Ryan Raaum wrote: > Hi Paul, > > Are there any (more informative) messages on the system console (/ > Applications/Utilities/Console.app)? > > Are there any spaces in the name of your external drive? > > Did you delete ruby altogether from your system ( i.e. if you open > a terminal and type "which ruby", what do you see?) > > Best, > > -r > > On 1/9/07, Paul Willis < info@paulwillis.com> wrote:Hi > > Locomotive quits on startup with the standard message "The > application Locomotive quit unexpectedly" and the options to 'Close', > 'Report...' or 'Reopen'. > > I am booted from an external Firewire hard drive and am running OS X > 10.4.8 with all the software updates. I have tried from two different > Macs, a G5 and a G4. I have tried downloading again. I have run this > download successfully on my colleague's Mac. > > The external drive is a long story involving a PowerBook and some > water so I don't have the option of using an internal drive at the > moment but could this be the problem? > > Does Locomotive need anything specific installed already? I ask > because I had installed Ruby, Rails, Gems, MySQL etc 'the hard way' > via the terminal. Unfortunately I managed to mess this up (hence > trying Locmotive now) and then tried deleting stuff I had installed, > I am worried that I have deleted something Locomotive is assuming I > have. > > Cheers > > Paul > _______________________________________________ > 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 > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ryan.raaum at gmail.com Tue Jan 9 20:25:50 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 9 20:27:19 2007 Subject: [Locomotive-users] Locomotive quits on startup In-Reply-To: <6A9963FB-8B33-4FA4-950F-3C8E29E6F89F@paulwillis.com> References: <37BDB453-E2EB-4E59-A47E-9AF22D24CDDF@paulwillis.com> <6A9963FB-8B33-4FA4-950F-3C8E29E6F89F@paulwillis.com> Message-ID: On 1/9/07, Paul Willis wrote: > > Hi > > Hmm I seem to have failed (or is that succeeded) on all 3 counts... > > 1. From the system console... > > env: ruby: No such file or directory > 2007-01-09 16:18:45.720 Locomotive[645] An uncaught exception was raised > 2007-01-09 16:18:45.757 Locomotive[645] *** -[NSCFDictionary > setObject:forKey:]: attempt to insert nil value > 2007-01-09 16:18:45.758 Locomotive[645] *** Uncaught exception: > *** -[NSCFDictionary setObject:forKey:]: > attempt to insert nil value > Jan 9 16:19:22 Paul crashdump[648]: Locomotive crashed > Jan 9 16:19:29 Paul crashdump[648]: crash report written to: /Users/ > paul/Library/Logs/CrashReporter/Locomotive.crash.log > > 2. There are spaces in the drive name 'Macintosh HD 160' Probably not good. Can you rename? 3. Typing "which ruby" into a terminal window just brings back the > prompt. So I have definitely deleted ruby (I was pretty sure I had anyway) I > thought Locomotive had 'everything' I needed. > > I guess I need to re-install ruby. Anything else I might need in there? There should be a system ruby which is standard with Mac OS X ... it seems you have deleted that as well... (Locomotive assumes this is present in some parts - though not on startup I don't think...). (I would download and install ruby into /usr - contact me directly if you want info on how to do that.) Any recommendations as to the easiest way to fix this? I have read > good stuff about MacPorts > > Cheers > > Paul > > > On 9 Jan 2007, at 16:04, Ryan Raaum wrote: > > > Hi Paul, > > > > Are there any (more informative) messages on the system console (/ > > Applications/Utilities/Console.app)? > > > > Are there any spaces in the name of your external drive? > > > > Did you delete ruby altogether from your system ( i.e. if you open > > a terminal and type "which ruby", what do you see?) > > > > Best, > > > > -r > > > > On 1/9/07, Paul Willis < info@paulwillis.com> wrote:Hi > > > > Locomotive quits on startup with the standard message "The > > application Locomotive quit unexpectedly" and the options to 'Close', > > 'Report...' or 'Reopen'. > > > > I am booted from an external Firewire hard drive and am running OS X > > 10.4.8 with all the software updates. I have tried from two different > > Macs, a G5 and a G4. I have tried downloading again. I have run this > > download successfully on my colleague's Mac. > > > > The external drive is a long story involving a PowerBook and some > > water so I don't have the option of using an internal drive at the > > moment but could this be the problem? > > > > Does Locomotive need anything specific installed already? I ask > > because I had installed Ruby, Rails, Gems, MySQL etc 'the hard way' > > via the terminal. Unfortunately I managed to mess this up (hence > > trying Locmotive now) and then tried deleting stuff I had installed, > > I am worried that I have deleted something Locomotive is assuming I > > have. > > > > Cheers > > > > Paul > > _______________________________________________ > > 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 > > _______________________________________________ > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070109/972a7950/attachment.htm From info at paulwillis.com Wed Jan 10 12:32:04 2007 From: info at paulwillis.com (Paul Willis) Date: Wed Jan 10 12:32:18 2007 Subject: [Locomotive-users] Locomotive quits on startup In-Reply-To: References: <37BDB453-E2EB-4E59-A47E-9AF22D24CDDF@paulwillis.com> <6A9963FB-8B33-4FA4-950F-3C8E29E6F89F@paulwillis.com> Message-ID: <8ADCED47-BB7F-4A88-BF66-F2D747D874C7@paulwillis.com> Hi I reinstalled ruby, using the instructions at and everything is now fine. It works (so far) even with spaces in the drive name Regards Paul On 9 Jan 2007, at 20:25, Ryan Raaum wrote: > > > On 1/9/07, Paul Willis wrote: Hi > > Hmm I seem to have failed (or is that succeeded) on all 3 counts... > > 1. From the system console... > > env: ruby: No such file or directory > 2007-01-09 16:18:45.720 Locomotive[645] An uncaught exception was > raised > 2007-01-09 16:18:45.757 Locomotive[645] *** -[NSCFDictionary > setObject:forKey:]: attempt to insert nil value > 2007-01-09 16:18:45.758 Locomotive[645] *** Uncaught exception: > *** -[NSCFDictionary setObject:forKey:]: > attempt to insert nil value > Jan 9 16:19:22 Paul crashdump[648]: Locomotive crashed > Jan 9 16:19:29 Paul crashdump[648]: crash report written to: /Users/ > paul/Library/Logs/CrashReporter/Locomotive.crash.log > > 2. There are spaces in the drive name 'Macintosh HD 160' > > Probably not good. Can you rename? > > 3. Typing "which ruby" into a terminal window just brings back the > prompt. > > > So I have definitely deleted ruby (I was pretty sure I had anyway) I > thought Locomotive had 'everything' I needed. > > I guess I need to re-install ruby. Anything else I might need in > there? > > > There should be a system ruby which is standard with Mac OS X ... > it seems you have deleted that as well... (Locomotive assumes this > is present in some parts - though not on startup I don't > think...). (I would download and install ruby into /usr - contact > me directly if you want info on how to do that.) > > Any recommendations as to the easiest way to fix this? I have read > good stuff about MacPorts > > Cheers > > Paul > > > On 9 Jan 2007, at 16:04, Ryan Raaum wrote: > > > Hi Paul, > > > > Are there any (more informative) messages on the system console (/ > > Applications/Utilities/Console.app)? > > > > Are there any spaces in the name of your external drive? > > > > Did you delete ruby altogether from your system ( i.e. if you open > > a terminal and type "which ruby", what do you see?) > > > > Best, > > > > -r > > > > On 1/9/07, Paul Willis < info@paulwillis.com> wrote:Hi > > > > Locomotive quits on startup with the standard message "The > > application Locomotive quit unexpectedly" and the options to > 'Close', > > 'Report...' or 'Reopen'. > > > > I am booted from an external Firewire hard drive and am running OS X > > 10.4.8 with all the software updates. I have tried from two > different > > Macs, a G5 and a G4. I have tried downloading again. I have run this > > download successfully on my colleague's Mac. > > > > The external drive is a long story involving a PowerBook and some > > water so I don't have the option of using an internal drive at the > > moment but could this be the problem? > > > > Does Locomotive need anything specific installed already? I ask > > because I had installed Ruby, Rails, Gems, MySQL etc 'the hard way' > > via the terminal. Unfortunately I managed to mess this up (hence > > trying Locmotive now) and then tried deleting stuff I had installed, > > I am worried that I have deleted something Locomotive is assuming I > > have. > > > > Cheers > > > > Paul > > _______________________________________________ > > 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 > > _______________________________________________ > > 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 > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ryan.raaum at gmail.com Wed Jan 10 21:47:57 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Wed Jan 10 21:48:02 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION In-Reply-To: <754D12D8-F14A-4544-B83F-7A342E41076F@integralimpressions.com> References: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> <754D12D8-F14A-4544-B83F-7A342E41076F@integralimpressions.com> Message-ID: On 1/9/07, Chris Abad wrote: > > I've tried hitting the URL I mentioned earlier and printing out the > request.env information into the logs. The user/pass don't show up at all. > Hrm. I'm afraid I'm not of much use here... Anyone? -r On Jan 9, 2007, at 8:07 AM, Ryan Raaum wrote: > > > > On 1/8/07, Chris Abad wrote: > > > > Question, using Locomotive's setup (I'm assuming just a straight > > connection to a single mongrel instance), is it possible to set the > > HTTP_AUTHORIZATION header from a URL like this: > > > > http://admin:admin@localhost:3000/ > > > > I'm not really sure where to look for this answer partly b/c I'm not > > sure which program is responsible for setting this information w/ > > Locomotive's setup. Is it Mongrel? > > > What happens if you try? Have you checked what makes it into the headers > in the controller? > > Best, > > -r > > Thanks for the help. > > _______________________________________________ > > 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 > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070110/8e5dbbb8/attachment.htm From chris at integralimpressions.com Wed Jan 10 21:53:48 2007 From: chris at integralimpressions.com (Chris Abad) Date: Wed Jan 10 21:53:54 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION In-Reply-To: References: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> <754D12D8-F14A-4544-B83F-7A342E41076F@integralimpressions.com> Message-ID: <5FFD1DE1-1C44-4852-91DD-BBAE320F6EDC@integralimpressions.com> I've seen way in which you can configure Apache to take that part of the URL and include it in the HTTP_AUTHORIZATION header, so I'm pretty sure this needs to be done at the web server level. I'm just not sure what that is in Locomotive (direct to Mongrel? Lighttpd?), where to change the config settings, and what to set them up to (this last one I can probably look up myself if I get answers to the first two). On Jan 10, 2007, at 1:47 PM, Ryan Raaum wrote: > > > On 1/9/07, Chris Abad wrote: > I've tried hitting the URL I mentioned earlier and printing out the > request.env information into the logs. The user/pass don't show up > at all. > > Hrm. I'm afraid I'm not of much use here... Anyone? > > -r > > On Jan 9, 2007, at 8:07 AM, Ryan Raaum wrote: > >> >> >> On 1/8/07, Chris Abad < chris@integralimpressions.com> wrote: >> Question, using Locomotive's setup (I'm assuming just a straight >> connection to a single mongrel instance), is it possible to set the >> HTTP_AUTHORIZATION header from a URL like this: >> >> http://admin:admin@localhost:3000/ >> >> I'm not really sure where to look for this answer partly b/c I'm not >> sure which program is responsible for setting this information w/ >> Locomotive's setup. Is it Mongrel? >> >> What happens if you try? Have you checked what makes it into the >> headers in the controller? >> >> Best, >> >> -r >> >> Thanks for the help. >> _______________________________________________ >> 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 >> _______________________________________________ >> 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 > _______________________________________________ > 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/20070110/54c67d60/attachment.htm From ryan.raaum at gmail.com Wed Jan 10 22:12:55 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Wed Jan 10 22:13:00 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION In-Reply-To: <5FFD1DE1-1C44-4852-91DD-BBAE320F6EDC@integralimpressions.com> References: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> <754D12D8-F14A-4544-B83F-7A342E41076F@integralimpressions.com> <5FFD1DE1-1C44-4852-91DD-BBAE320F6EDC@integralimpressions.com> Message-ID: On 1/10/07, Chris Abad wrote: > > I've seen way in which you can configure Apache to take that part of the > URL and include it in the HTTP_AUTHORIZATION header, so I'm pretty sure this > needs to be done at the web server level. I'm just not sure what that is in > Locomotive (direct to Mongrel? Lighttpd?), where to change the config > settings, and what to set them up to (this last one I can probably look up > myself if I get answers to the first two). > Ok... have you seen/tried this? (I've not, but is seems like it may be useful to you...) http://blog.codahale.com/2006/05/11/basic-http-authentication-with-rails-simple_http_auth -r On Jan 10, 2007, at 1:47 PM, Ryan Raaum wrote: > > > > On 1/9/07, Chris Abad wrote: > > > > I've tried hitting the URL I mentioned earlier and printing out the > > request.env information into the logs. The user/pass don't show up at > > all. > > > > Hrm. I'm afraid I'm not of much use here... Anyone? > > -r > > On Jan 9, 2007, at 8:07 AM, Ryan Raaum wrote: > > > > > > > > On 1/8/07, Chris Abad < chris@integralimpressions.com> wrote: > > > > > > Question, using Locomotive's setup (I'm assuming just a straight > > > connection to a single mongrel instance), is it possible to set the > > > HTTP_AUTHORIZATION header from a URL like this: > > > > > > http://admin:admin@localhost:3000/ > > > > > > I'm not really sure where to look for this answer partly b/c I'm not > > > sure which program is responsible for setting this information w/ > > > Locomotive's setup. Is it Mongrel? > > > > > > What happens if you try? Have you checked what makes it into the > > headers in the controller? > > > > Best, > > > > -r > > > > Thanks for the help. > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070110/8962af8d/attachment-0001.htm From chris at integralimpressions.com Wed Jan 10 22:18:22 2007 From: chris at integralimpressions.com (Chris Abad) Date: Wed Jan 10 22:18:28 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION In-Reply-To: References: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> <754D12D8-F14A-4544-B83F-7A342E41076F@integralimpressions.com> <5FFD1DE1-1C44-4852-91DD-BBAE320F6EDC@integralimpressions.com> Message-ID: <5865F1E6-95A0-471D-A224-72107AF1FD5B@integralimpressions.com> No, that's not what I'm trying to do. I already have the http authorization built into my app. What I'm trying to do is have the web server grab the credentials from the URL (I've seen it done w/ Apache, and assume this is done at the web server level) and pass it correctly through the header. Here's what I think I need: 1. What's the web server in Locomotive? Mongrel? Lighttpd? 2. Where's the config file for that web server? On Jan 10, 2007, at 2:12 PM, Ryan Raaum wrote: > > > On 1/10/07, Chris Abad wrote: > I've seen way in which you can configure Apache to take that part > of the URL and include it in the HTTP_AUTHORIZATION header, so I'm > pretty sure this needs to be done at the web server level. I'm just > not sure what that is in Locomotive (direct to Mongrel? Lighttpd?), > where to change the config settings, and what to set them up to > (this last one I can probably look up myself if I get answers to > the first two). > > Ok... have you seen/tried this? (I've not, but is seems like it may > be useful to you...) > > http://blog.codahale.com/2006/05/11/basic-http-authentication-with- > rails-simple_http_auth > > -r > > > On Jan 10, 2007, at 1:47 PM, Ryan Raaum wrote: > >> >> >> On 1/9/07, Chris Abad wrote: >> I've tried hitting the URL I mentioned earlier and printing out >> the request.env information into the logs. The user/pass don't >> show up at all. >> >> Hrm. I'm afraid I'm not of much use here... Anyone? >> >> -r >> >> On Jan 9, 2007, at 8:07 AM, Ryan Raaum wrote: >> >>> >>> >>> On 1/8/07, Chris Abad < chris@integralimpressions.com> wrote: >>> Question, using Locomotive's setup (I'm assuming just a straight >>> connection to a single mongrel instance), is it possible to set the >>> HTTP_AUTHORIZATION header from a URL like this: >>> >>> http://admin:admin@localhost:3000/ >>> >>> I'm not really sure where to look for this answer partly b/c I'm not >>> sure which program is responsible for setting this information w/ >>> Locomotive's setup. Is it Mongrel? >>> >>> What happens if you try? Have you checked what makes it into the >>> headers in the controller? >>> >>> Best, >>> >>> -r >>> >>> Thanks for the help. >>> _______________________________________________ >>> 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 >>> _______________________________________________ >>> 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 >> _______________________________________________ >> 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 > _______________________________________________ > 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/20070110/03bdeadd/attachment.htm From ryan.raaum at gmail.com Thu Jan 11 00:00:33 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Jan 11 00:00:45 2007 Subject: [Locomotive-users] HTTP_AUTHORIZATION In-Reply-To: <5865F1E6-95A0-471D-A224-72107AF1FD5B@integralimpressions.com> References: <20F5E935-9B53-4FAC-970B-BF69A7830AE1@integralimpressions.com> <754D12D8-F14A-4544-B83F-7A342E41076F@integralimpressions.com> <5FFD1DE1-1C44-4852-91DD-BBAE320F6EDC@integralimpressions.com> <5865F1E6-95A0-471D-A224-72107AF1FD5B@integralimpressions.com> Message-ID: On 1/10/07, Chris Abad wrote: > > No, that's not what I'm trying to do. I already have the http > authorization built into my app. What I'm trying to do is have the web > server grab the credentials from the URL (I've seen it done w/ Apache, and > assume this is done at the web server level) and pass it correctly through > the header. > > Here's what I think I need: > 1. What's the web server in Locomotive? Mongrel? Lighttpd? > Both. Default is mongrel. (can be changed to lighttpd by adding "server: lighttpd" to config/locomotive.yml) 2. Where's the config file for that web server? > For mongrel, there is none by default, but you may create one and specify it with "server-conf: /path/to/config" in locomotive.yml For lighttpd the base config is in /Locomotive2/Bundles/bundlename/config/base_lighttpd.conf Best, -r On Jan 10, 2007, at 2:12 PM, Ryan Raaum wrote: > > > > On 1/10/07, Chris Abad wrote: > > > > I've seen way in which you can configure Apache to take that part of the > > URL and include it in the HTTP_AUTHORIZATION header, so I'm pretty sure this > > needs to be done at the web server level. I'm just not sure what that is in > > Locomotive (direct to Mongrel? Lighttpd?), where to change the config > > settings, and what to set them up to (this last one I can probably look up > > myself if I get answers to the first two). > > > > Ok... have you seen/tried this? (I've not, but is seems like it may be > useful to you...) > > > http://blog.codahale.com/2006/05/11/basic-http-authentication-with-rails-simple_http_auth > > -r > > > On Jan 10, 2007, at 1:47 PM, Ryan Raaum wrote: > > > > > > > > On 1/9/07, Chris Abad wrote: > > > > > > I've tried hitting the URL I mentioned earlier and printing out the > > > request.env information into the logs. The user/pass don't show up at > > > all. > > > > > > > Hrm. I'm afraid I'm not of much use here... Anyone? > > > > -r > > > > On Jan 9, 2007, at 8:07 AM, Ryan Raaum wrote: > > > > > > > > > > > > On 1/8/07, Chris Abad < chris@integralimpressions.com> wrote: > > > > > > > > Question, using Locomotive's setup (I'm assuming just a straight > > > > connection to a single mongrel instance), is it possible to set the > > > > HTTP_AUTHORIZATION header from a URL like this: > > > > > > > > http://admin:admin@localhost:3000/ > > > > > > > > I'm not really sure where to look for this answer partly b/c I'm not > > > > sure which program is responsible for setting this information w/ > > > > Locomotive's setup. Is it Mongrel? > > > > > > > > > What happens if you try? Have you checked what makes it into the > > > headers in the controller? > > > > > > Best, > > > > > > -r > > > > > > Thanks for the help. > > > > _______________________________________________ > > > > 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 > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070111/86e5f882/attachment-0001.htm From alain.ravet at gmail.com Thu Jan 11 14:47:48 2007 From: alain.ravet at gmail.com (Alain Ravet) Date: Thu Jan 11 14:47:52 2007 Subject: [Locomotive-users] running scripts through TM Message-ID: Hi, Is there a way to run a script from TextMate, and have it use Locomotive's Rails Bundle? I'm trying to simplify my toolbox by launching shell commands from TextMate, but it doesn't work as TM uses the local version of Rails. Alain From steve at talcottsystems.com Thu Jan 11 19:09:55 2007 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Thu Jan 11 19:10:05 2007 Subject: [Locomotive-users] running scripts through TM In-Reply-To: References: Message-ID: <4A25D2A4-E8B1-4C5A-BA57-B24CCA8B3E5E@talcottsystems.com> I did get this working by setting up a .bash_profile in my home directory with the contents of: /private/var/tmp/folders.501/TemporaryItems/*.bash Steven On Jan 11, 2007, at 9:47 AM, Alain Ravet wrote: > Hi, > > Is there a way to run a script from TextMate, and have it use > Locomotive's Rails Bundle? > > I'm trying to simplify my toolbox by launching shell commands from > TextMate, but it doesn't work as TM uses the local version of Rails. > > > Alain > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ryan.raaum at gmail.com Thu Jan 11 19:46:08 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Jan 11 19:46:17 2007 Subject: [Locomotive-users] running scripts through TM In-Reply-To: <4A25D2A4-E8B1-4C5A-BA57-B24CCA8B3E5E@talcottsystems.com> References: <4A25D2A4-E8B1-4C5A-BA57-B24CCA8B3E5E@talcottsystems.com> Message-ID: On 1/11/07, Steven Talcott Smith wrote: > > I did get this working by setting up a .bash_profile in my home > directory with the contents of: > > /private/var/tmp/folders.501/TemporaryItems/*.bash Sneaky. I like it. This post gives an alternate idea that would be TextMate specific. http://www.tug.org/pipermail/macostex-archives/2005-March/014519.html Best, -r Steven > > > On Jan 11, 2007, at 9:47 AM, Alain Ravet wrote: > > > Hi, > > > > Is there a way to run a script from TextMate, and have it use > > Locomotive's Rails Bundle? > > > > I'm trying to simplify my toolbox by launching shell commands from > > TextMate, but it doesn't work as TM uses the local version of Rails. > > > > > > Alain > > _______________________________________________ > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070111/6659e5fe/attachment.htm From steve at talcottsystems.com Thu Jan 11 19:49:43 2007 From: steve at talcottsystems.com (Steven Talcott Smith) Date: Thu Jan 11 19:49:57 2007 Subject: [Locomotive-users] running scripts through TM In-Reply-To: References: <4A25D2A4-E8B1-4C5A-BA57-B24CCA8B3E5E@talcottsystems.com> Message-ID: <70AFC454-E726-4F21-AC27-362892C2C9B2@talcottsystems.com> Oh there was one extra step... I had to put this at the top of a ruby file to run... require 'config/boot.rb' Rails::Initializer.run Any advice on a better way is welcome. Steven Talcott Smith President Talcott Systems, LLC steve@talcottsystems.com On Jan 11, 2007, at 2:46 PM, Ryan Raaum wrote: > > > On 1/11/07, Steven Talcott Smith wrote: > I did get this working by setting up a .bash_profile in my home > directory with the contents of: > > /private/var/tmp/folders.501/TemporaryItems/*.bash > > Sneaky. I like it. This post gives an alternate idea that would > be TextMate specific. > > http://www.tug.org/pipermail/macostex-archives/2005-March/014519.html > > Best, > > -r > > Steven > > > On Jan 11, 2007, at 9:47 AM, Alain Ravet wrote: > > > Hi, > > > > Is there a way to run a script from TextMate, and have it use > > Locomotive's Rails Bundle? > > > > I'm trying to simplify my toolbox by launching shell commands from > > TextMate, but it doesn't work as TM uses the local version of Rails. > > > > > > Alain > > _______________________________________________ > > 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 > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ryan.raaum at gmail.com Fri Jan 12 03:23:06 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Fri Jan 12 03:23:15 2007 Subject: [Locomotive-users] running scripts through TM In-Reply-To: <70AFC454-E726-4F21-AC27-362892C2C9B2@talcottsystems.com> References: <4A25D2A4-E8B1-4C5A-BA57-B24CCA8B3E5E@talcottsystems.com> <70AFC454-E726-4F21-AC27-362892C2C9B2@talcottsystems.com> Message-ID: On 1/11/07, Steven Talcott Smith wrote: > > Oh there was one extra step... I had to put this at the top of a > ruby file to run... > > require 'config/boot.rb' > Rails::Initializer.run > > Any advice on a better way is welcome. require 'rubygems' maybe? -r Steven Talcott Smith > President > Talcott Systems, LLC > steve@talcottsystems.com > > > On Jan 11, 2007, at 2:46 PM, Ryan Raaum wrote: > > > > > > > On 1/11/07, Steven Talcott Smith wrote: > > I did get this working by setting up a .bash_profile in my home > > directory with the contents of: > > > > /private/var/tmp/folders.501/TemporaryItems/*.bash > > > > Sneaky. I like it. This post gives an alternate idea that would > > be TextMate specific. > > > > http://www.tug.org/pipermail/macostex-archives/2005-March/014519.html > > > > Best, > > > > -r > > > > Steven > > > > > > On Jan 11, 2007, at 9:47 AM, Alain Ravet wrote: > > > > > Hi, > > > > > > Is there a way to run a script from TextMate, and have it use > > > Locomotive's Rails Bundle? > > > > > > I'm trying to simplify my toolbox by launching shell commands from > > > TextMate, but it doesn't work as TM uses the local version of Rails. > > > > > > > > > Alain > > > _______________________________________________ > > > 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 > > _______________________________________________ > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070112/47d19ecd/attachment.htm From alain.ravet at gmail.com Fri Jan 12 18:56:37 2007 From: alain.ravet at gmail.com (Alain Ravet) Date: Fri Jan 12 18:56:52 2007 Subject: [Locomotive-users] running scripts through TM In-Reply-To: <4A25D2A4-E8B1-4C5A-BA57-B24CCA8B3E5E@talcottsystems.com> References: <4A25D2A4-E8B1-4C5A-BA57-B24CCA8B3E5E@talcottsystems.com> Message-ID: Steven > I did get this working by setting up a .bash_profile in my > home directory with the contents of: > > /private/var/tmp/folders.501/TemporaryItems/*.bash Worked like a charm. Thanks. (there were 5 such files in the directory, and I picked one at random. Alain From rschenk at gmail.com Tue Jan 16 15:19:20 2007 From: rschenk at gmail.com (Ryan Schenk) Date: Tue Jan 16 15:19:26 2007 Subject: [Locomotive-users] Locomotive Log Feature Request Message-ID: <1ef38bad0701160719r5c06a379gcd57ed824c0c32bb@mail.gmail.com> I have a request for a new feature in Locomotive. I'm not sure if this mailing list is the appropriate context for posting feature requests, so if it's not please feel free to say so. Anyways, the new feature would be a "View Log" menu item on the application's contextual menu and the Applications menubar menu, grouped with the very handy Open Terminal/Browser/TextMate menu items. I'm envisioning this new feature looks at the development or production state of the application, then launches Console.app with the appropriate log file. Does this feature already exist somewhere that I'm missing? Thanks for making this great piece of software, Ryan! -Ryan Schenk From ryan.raaum at gmail.com Tue Jan 16 22:48:58 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 16 22:49:06 2007 Subject: [Locomotive-users] Locomotive Log Feature Request In-Reply-To: <1ef38bad0701160719r5c06a379gcd57ed824c0c32bb@mail.gmail.com> References: <1ef38bad0701160719r5c06a379gcd57ed824c0c32bb@mail.gmail.com> Message-ID: On 1/16/07, Ryan Schenk wrote: > > I have a request for a new feature in Locomotive. I'm not sure if this > mailing list is the appropriate context for posting feature requests, > so if it's not please feel free to say so. > > Anyways, the new feature would be a "View Log" menu item on the > application's contextual menu and the Applications menubar menu, > grouped with the very handy Open Terminal/Browser/TextMate menu items. > I'm envisioning this new feature looks at the development or > production state of the application, then launches Console.app with > the appropriate log file. Does this feature already exist somewhere > that I'm missing? Doesn't exist yet. But is on the list! Thanks! -r Thanks for making this great piece of software, Ryan! > -Ryan Schenk > _______________________________________________ > 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/20070116/7c4d18cb/attachment.htm From ni-di at web.de Thu Jan 18 13:34:17 2007 From: ni-di at web.de (Niko Dittmann) Date: Thu Jan 18 13:34:27 2007 Subject: [Locomotive-users] locomotive & bonjour Message-ID: <7377FE83-5553-424D-BABF-F91A33C60D54@web.de> Hi Ryan. Are there any plans in making locomotive applications available as bonjour bookmarks? That would kick ass! Regards, Niko. -- ____________________________ niko dittmann ____________________________ From peter at horsburgh.co.uk Thu Jan 18 16:39:31 2007 From: peter at horsburgh.co.uk (Peter Gerard) Date: Thu Jan 18 16:39:43 2007 Subject: [Locomotive-users] Trouble installing gems Message-ID: I was just trying to install the Curb gem (for Libcurl bindings) and got the following error... Is there some special trick for installing gems with Locomotive? I noticed in a previous message on this list that you added sudo so I tried that and got the same error as without. Thanks MacG5:~/Desktop/rails_app user$ sudo gem install curb We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. Password: Need to update 1 gems from http://gems.rubyforge.org . complete Building native extensions. This could take a while... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/po werpc/bin/ruby --with-curl-dir --without-curl-dir --with-curl-include --without-curl-include=${curl-dir}/include --with-curl-lib --without-curl-lib=${curl-dir}/lib --with-curllib --without-curllib ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension. Gem files will remain installed in /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/l ib/ruby/gems/1.8/gems/curb-0.1.2 for inspection. Results logged to /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/l ib/ruby/gems/1.8/gems/curb-0.1.2/ext/gem_make.out ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.mercurytide.com/ ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070118/410ba8c1/attachment.htm From ryan.raaum at gmail.com Thu Jan 18 16:48:53 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Jan 18 16:48:59 2007 Subject: [Locomotive-users] Trouble installing gems In-Reply-To: References: Message-ID: On 1/18/07, Peter Gerard wrote: > > I was just trying to install the Curb gem (for Libcurl bindings) and got > the following error... Is there some special trick for installing gems with > Locomotive? I noticed in a previous message on this list that you added sudo > so I tried that and got the same error as without. > Hi Peter, Do you have the Apple dev tools installed? If you don't have them installed, you won't be able to compile everything (they don't come installed by default). Best, -r http://developer.apple.com/tools/ Thanks > > MacG5:~/Desktop/rails_app user$ sudo gem install curb > > We trust you have received the usual lecture from the local System > Administrator. It usually boils down to these three things: > > #1) Respect the privacy of others. > #2) Think before you type. > #3) With great power comes great responsibility. > > Password: > Need to update 1 gems from http://gems.rubyforge.org > . > complete > Building native extensions. This could take a while... > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Provided configuration options: > --with-opt-dir > --without-opt-dir > --with-opt-include > --without-opt-include=${opt-dir}/include > --with-opt-lib > --without-opt-lib=${opt-dir}/lib > --with-make-prog > --without-make-prog > --srcdir=. > --curdir > > --ruby=/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin/ruby > --with-curl-dir > --without-curl-dir > --with-curl-include > --without-curl-include=${curl-dir}/include > --with-curl-lib > --without-curl-lib=${curl-dir}/lib > --with-curllib > --without-curllib > > ERROR: While executing gem ... (RuntimeError) > ERROR: Failed to build gem native extension. > Gem files will remain installed in > /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/gems/1.8/gems/curb- > 0.1.2 for inspection. > > > Results logged to > /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/gems/1.8/gems/curb- > 0.1.2/ext/gem_make.out > > ________________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs SkyScan > service. For more information on a proactive anti-virus service working > around the clock, around the globe, visit http://www.mercurytide.com/ > ________________________________________________________________________ > > _______________________________________________ > 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/20070118/943912e3/attachment.htm From ryan.raaum at gmail.com Thu Jan 18 16:50:00 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Thu Jan 18 16:50:06 2007 Subject: [Locomotive-users] locomotive & bonjour In-Reply-To: <7377FE83-5553-424D-BABF-F91A33C60D54@web.de> References: <7377FE83-5553-424D-BABF-F91A33C60D54@web.de> Message-ID: On 1/18/07, Niko Dittmann wrote: > > Hi Ryan. > > > Are there any plans in making locomotive applications available as > bonjour bookmarks? That would kick ass! What would that entail? (I know next to nothing about bonjour .. educate me!! :) Best, -r Regards, Niko. > > -- > ____________________________ > niko dittmann > ____________________________ > > _______________________________________________ > 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/20070118/a49dd437/attachment.htm From ni-di at web.de Thu Jan 18 20:29:09 2007 From: ni-di at web.de (Niko Dittmann) Date: Thu Jan 18 20:29:22 2007 Subject: [Locomotive-users] locomotive & bonjour In-Reply-To: References: <7377FE83-5553-424D-BABF-F91A33C60D54@web.de> Message-ID: <649CAA21-A568-4C6C-B8EA-CA80CD0E4EF0@web.de> The apps running in Locomotive would appear automagically in the Safari bonjour menu (Bookmark -> Bounjour ; you need to activate Bonjour bookmarks in the bookmarks prefs). I know you can open your local Safari with a running Locomotive application. But with Bonjour our collegues could access running apps without us telling them "just enter 192.168.0.xxx:30yy in your browser". And with Bonjour for Windows installed we could conviniently access rails apps from IE in Parallels. Apache supports this with mod_rendezvous and Tomcat with jRendezvous. Having it in Locomotive would be nice. And oh so OSX- ish. :D You can try it yourself by entering a line like this in your Apache httpd.conf: RegisterResource MyApache / and voil? "MyApache" appear in Safaris Bonjour menu. Best, Niko. PS: Rendezvouz changed its name into Bonjour some time ago due to naming conficts. I guess the old name just sticks to the Apache and the Tomcat module. Am 18.01.2007 um 17:50 schrieb Ryan Raaum: > On 1/18/07, Niko Dittmann wrote: >> Hi Ryan. >> >> Are there any plans in making locomotive applications available as >> bonjour bookmarks? That would kick ass! > > What would that entail? (I know next to nothing about bonjour .. > educate > me!! :) > > Best, > > -r -- ____________________________ niko dittmann ____________________________ -- ____________________________ niko dittmann ____________________________ From ni-di at web.de Thu Jan 18 20:32:32 2007 From: ni-di at web.de (Niko Dittmann) Date: Thu Jan 18 20:32:42 2007 Subject: [Locomotive-users] locomotive & bonjour References: <649CAA21-A568-4C6C-B8EA-CA80CD0E4EF0@web.de> Message-ID: <5BF95ACF-336D-410F-B2A9-CFB476CED061@web.de> > ? > > PS: Rendezvouz changed its name into Bonjour some time ago due to > naming conficts. I guess the old name just sticks to the Apache > and the Tomcat module. I was wrong with this. Actually the module is called mod_bonjour. -- ____________________________ niko dittmann ____________________________ From ausserirdisch at sven-space.de Thu Jan 18 21:35:11 2007 From: ausserirdisch at sven-space.de (Sven Strittmatter) Date: Thu Jan 18 21:35:18 2007 Subject: [Locomotive-users] locomotive & bonjour In-Reply-To: <649CAA21-A568-4C6C-B8EA-CA80CD0E4EF0@web.de> References: <7377FE83-5553-424D-BABF-F91A33C60D54@web.de> <649CAA21-A568-4C6C-B8EA-CA80CD0E4EF0@web.de> Message-ID: <45AFE80F.9040300@sven-space.de> Hi loco-users :-) Niko Dittmann schrieb: > > But with Bonjour our collegues could access running apps without us > telling them "just enter 192.168.0.xxx:30yy in your browser". And > with Bonjour for Windows installed we could conviniently access rails > apps from IE in Parallels. > Why don't you made an index.html on your machine with the appropriate links to your app on your machine? and registering your localhost via apache mod as bonjourable? so your kolleags only needs to "klickiklicki" on your computer and then select the link to the app on your localhost website. that's quite more simple and produces less network traffic ;-) best regards sven From ryan.raaum at gmail.com Fri Jan 19 05:01:33 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Fri Jan 19 05:01:38 2007 Subject: [Locomotive-users] Rails 1.2.1 Bundles Message-ID: Hi all, I've made up bundles for the new Rails 1.2.1 release. I've not yet had time to update the web page, but you can grab them from sourceforge: Rails 1.2.1 Standard Bundle for Jan 2007 (ppc/x86) http://downloads.sourceforge.net/locomotive/StandardRailsJan2007.dmg?use_mirror=osdn Rails 1.2.1 with RMagick Bundles for Jan 2007 x86: http://downloads.sourceforge.net/locomotive/RMagickRailJan2007-x86.dmg?use_mirror=osdn ppc: http://downloads.sourceforge.net/locomotive/RMagickRailsJan2007-ppc.dmg?use_mirror=osdn I ran some (very very limited) tests on these bundles and everything seems ok ... but there could be problems. Post to the list if you find anything. Also, remember to update RAILS_GEM_VERSION in config/environment.rb in your existing applications for 1.2.1 !!! Best, -r -- 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/20070119/f5005e57/attachment.htm From ni-di at web.de Fri Jan 19 08:21:59 2007 From: ni-di at web.de (Niko Dittmann) Date: Fri Jan 19 08:24:57 2007 Subject: [Locomotive-users] locomotive & bonjour In-Reply-To: <45AFE80F.9040300@sven-space.de> References: <7377FE83-5553-424D-BABF-F91A33C60D54@web.de> <649CAA21-A568-4C6C-B8EA-CA80CD0E4EF0@web.de> <45AFE80F.9040300@sven-space.de> Message-ID: <198A6049-9F1A-456C-96AE-05CBACFEFA87@web.de> Am 18.01.2007 um 22:35 schrieb Sven Strittmatter: > Hi loco-users :-) > > Niko Dittmann schrieb: >> >> But with Bonjour our collegues could access running apps without >> us telling them "just enter 192.168.0.xxx:30yy in your browser". >> And with Bonjour for Windows installed we could conviniently >> access rails apps from IE in Parallels. >> > Why don't you made an index.html on your machine with the > appropriate links to > your app on your machine? and registering your localhost via apache > mod > as bonjourable? so your kolleags only needs to "klickiklicki" on your > computer and then select the link to the app on your localhost > website. Yeah. But usually i have 10 - 15 rails apps in Locomotive but just one or two runing at the same time. I already though about a script which cd's into the rails apps and uses the locomotive command line to figure out wether the app is running and then generates a html- file. But that's not really _that_ elegant. After thinking for some time Bonjour came to my mind. > that's quite more simple and produces less network traffic ;-) -- ____________________________ niko dittmann ____________________________ From richard at infoarts.info Fri Jan 19 21:47:55 2007 From: richard at infoarts.info (Richard Sandilands) Date: Fri Jan 19 21:48:22 2007 Subject: [Locomotive-users] Error with Rails 1.2 Message-ID: Hi there I've just upgraded to the new Standard Rails 1.2 Bundle and have changed environment.rb to RAILS_GEM_VERSION = '1.2.1' . But when I run script/console for my app, I get this error in the console: /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/ i386/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ dependencies.rb:377:in `new_constants_in':NoMethodError: You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.empty? So, this is referring to a line in the Rails code, not my app. I'm clueless as to how to proceed. Any clues would be appreciated. -- Richard Sandilands From asari at yahoo.com Sat Jan 20 02:01:06 2007 From: asari at yahoo.com (Hiro) Date: Sat Jan 20 02:10:17 2007 Subject: [Locomotive-users] Re: Rails 1.2.1 Bundles References: Message-ID: As described in AWDR 2nd ed, p.29, I attempted creating my own Rails 1.2.1 documentation. I create a dummy app with Locomotive, open a terminal, then run 'rake rails:freeze:gems'. I get this error: $ rake rails:freeze:gems (in /Users/johnd/docs) /Users/johnd/docs/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) From rdm at cfcl.com Sat Jan 20 07:45:13 2007 From: rdm at cfcl.com (Rich Morin) Date: Sat Jan 20 07:45:29 2007 Subject: [Locomotive-users] Rails 1.2.1 Bundles In-Reply-To: References: Message-ID: I loaded (I think :) the latest version of Locomotive and the latest bundle (for PPC). I'm getting some minor grief: > rdm@cerberus [~...Racks/Racks] 9: ruby script/generate migration >add_monkeys_table > ./script/../config/boot.rb:29:Warning: require_gem is obsolete. Use gem >instead. > create db/migrate > create db/migrate/001_add_monkeys_table.rb > rdm@cerberus [~...Racks/Racks] 10: rake migrate > (in /Local/_Private/Homes/rdm/Private/Work/Racks/Racks) > >/Local/_Private/Homes/rdm/Private/Work/Racks/Racks/config/boot.rb:29:Warning: >require_gem is obsolete. Use gem instead. > == AddMonkeysTable: migrating >================================================= > -- create_table(:monkeys) > -> 0.0098s > == AddMonkeysTable: migrated (0.0103s) >======================================== > > The rake task migrate has been deprecated, please use the replacement >version db:migrate Am I doing something wrong or is there some version slippage? -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 rdm at cfcl.com Sat Jan 20 18:15:33 2007 From: rdm at cfcl.com (Rich Morin) Date: Sat Jan 20 19:14:35 2007 Subject: [Locomotive-users] Locomotive and Apache? In-Reply-To: References: Message-ID: At 5:11 PM -0700 1/6/07, Grant Neufeld wrote: > At 2:47 PM -0800 1/6/07, Rich Morin wrote: >>Now I'm looking into adding Locomotive to the mix. > ... >>I'll be needing to tie Rails into the existing Apache setup. > > Here's a (kind of) quick and dirty way (no software installs/builds > except your existing apache, Locomotive and a simple StartupItem). > ... I've been playing with this, quite successfully in general, but I'm getting some undesirable behavior. What I'm trying to do is map a virtual host to different servers, based on the requested URL: ServerName hack.cfcl.com ServerAdmin rdm@cfcl.com ErrorLog /dev/null CustomLog /dev/null common ProxyRequests Off ProxyPass /play http://192.168.1.205:3000 ProxyPassReverse /play http://192.168.1.205:3000 ProxyPass / http://192.168.1.205/hack ProxyPassReverse / http://192.168.1.205/hack This resolves URLS as follows: http://hack.cfcl.com/ maps to port 80 (Apache) and the "hack" directory http://hack.cfcl.com/play/monkeys/list maps to port 3000 (Locomotive) The "undesirable behavior" is that the "Address" line in my web browser is displaying "http://cerberus.cfcl.com/hack/" in the first (Apache) case. I'd much prefer that it just show the URL as entered. Help? -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 rdm at cfcl.com Sun Jan 21 02:31:26 2007 From: rdm at cfcl.com (Rich Morin) Date: Sun Jan 21 02:31:35 2007 Subject: [Locomotive-users] Virtual Hosts problem Message-ID: I'm having a bit of trouble with Apache's virtual hosts. My httpd.conf file contains: ServerName xyz.cfcl.com ServerAdmin rdm@cfcl.com ErrorLog /dev/null CustomLog /dev/null common ProxyRequests Off ProxyPass / http://fido.cfcl.com:3002 ProxyPassReverse / http://fido.cfcl.com:3002 This lets requests get to a copy of RoR 1.2 (Locomotive) on fido. Mostly, this works fine. For example, http://localhost:3002 and http://xyz.cfcl.com/ both bring up a welcome page. However, although http://localhost:3002/stylesheets/base.css brings up a CSS file, http://xyz.cfcl.com/stylesheets/base.css brings up the nastygram: Bad Request Your browser sent a request that this server could not understand. Apache/1.3.33 Server at tchm.cfcl.com Port 80 In fact, ANY file in the public directory (e.g., {404,500}.html) acts this way. Any idea on whether this is an Apache or Rails problem and (more critically) what to do about it? -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 jaywcraig at mac.com Sun Jan 21 20:24:35 2007 From: jaywcraig at mac.com (Jay Craig) Date: Sun Jan 21 20:24:47 2007 Subject: [Locomotive-users] Rails 1.2.1 Bundles In-Reply-To: References: Message-ID: Ryan, Thanks for the new 1.2.1 bundle. I've been trying to work with 1.2.1 in vendor for a couple of weeks with very limited success. The new bundle has been flawless so far. --Jay On Jan 18, 2007, at 10:01 PM, Ryan Raaum wrote: > Hi all, > > I've made up bundles for the new Rails 1.2.1 release. I've not yet > had time to update the web page, but you can grab them from > sourceforge: > > Rails 1.2.1 Standard Bundle for Jan 2007 (ppc/x86) > http://downloads.sourceforge.net/locomotive/ > StandardRailsJan2007.dmg?use_mirror=osdn > > Rails 1.2.1 with RMagick Bundles for Jan 2007 > x86: http://downloads.sourceforge.net/locomotive/RMagickRailJan2007- > x86.dmg?use_mirror=osdn > ppc: http://downloads.sourceforge.net/locomotive/ > RMagickRailsJan2007-ppc.dmg?use_mirror=osdn > > I ran some (very very limited) tests on these bundles and > everything seems ok ... but there could be problems. Post to the > list if you find anything. > > Also, remember to update RAILS_GEM_VERSION in config/environment.rb > in your existing applications for 1.2.1 !!! > > Best, > > -r > > -- > Ryan Raaum > http://raaum.org > http://rails.raaum.org -- Rails docs > http://locomotive.raaum.org -- Self contained Rails for Mac OS X > _______________________________________________ > 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/20070121/b46967e0/attachment.htm From ryan.raaum at gmail.com Mon Jan 22 13:52:43 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Mon Jan 22 13:52:50 2007 Subject: [Locomotive-users] Error with Rails 1.2 In-Reply-To: References: Message-ID: On 1/19/07, Richard Sandilands wrote: > > Hi there I've just upgraded to the new Standard Rails 1.2 Bundle and > have changed environment.rb to RAILS_GEM_VERSION = '1.2.1' . > > But when I run script/console for my app, I get this error in the > console: > > /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/ > i386/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ > dependencies.rb:377:in `new_constants_in':NoMethodError: You have a > nil object when you didn't expect it! > You might have expected an instance of Array. > The error occurred while evaluating nil.empty? > > So, this is referring to a line in the Rails code, not my app. I'm > clueless as to how to proceed. Any clues would be appreciated. Mostly guessing here... Rails 1.2.x changes some standard behavior that let ruby standard library packages be used with being required. Is is possible that you are using something from the standard library without requiring it? -r -- > Richard Sandilands > _______________________________________________ > 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/20070122/08375629/attachment.htm From ryan.raaum at gmail.com Mon Jan 22 13:56:20 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Mon Jan 22 13:56:32 2007 Subject: [Locomotive-users] Rails 1.2.1 Bundles In-Reply-To: References: Message-ID: On 1/20/07, Rich Morin wrote: > > I loaded (I think :) the latest version of Locomotive and > the latest bundle (for PPC). I'm getting some minor grief: > > > rdm@cerberus [~...Racks/Racks] 9: ruby script/generate migration > >add_monkeys_table > > ./script/../config/boot.rb:29:Warning: require_gem is obsolete. Use gem > >instead. > > create db/migrate > > create db/migrate/001_add_monkeys_table.rb > > rdm@cerberus [~...Racks/Racks] 10: rake migrate > > (in /Local/_Private/Homes/rdm/Private/Work/Racks/Racks) > > > > >/Local/_Private/Homes/rdm/Private/Work/Racks/Racks/config/boot.rb:29:Warning: > >require_gem is obsolete. Use gem instead. > > == AddMonkeysTable: migrating > >================================================= > > -- create_table(:monkeys) > > -> 0.0098s > > == AddMonkeysTable: migrated (0.0103s) > >======================================== > > > > The rake task migrate has been deprecated, please use the replacement > >version db:migrate > > Am I doing something wrong or is there some version slippage? All of these are expected warnings. Rubygems 0.9.1 deprecates "require_gem" in favor of "gem". You can make that warning go away by changing out the require_gem lines in your app (there are a couple in config/boot.rb). Same for "rake migrate", the new rake tasks are namespaced, so you should be switching to "rake db:migrate". Best, -r -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 > _______________________________________________ > 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/20070122/8c9051f6/attachment.htm From ryan.raaum at gmail.com Mon Jan 22 13:58:12 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Mon Jan 22 13:58:18 2007 Subject: [Locomotive-users] Re: Rails 1.2.1 Bundles In-Reply-To: References: Message-ID: On 1/19/07, Hiro wrote: > > As described in AWDR 2nd ed, p.29, I attempted creating my own Rails 1.2.1 > documentation. > > I create a dummy app with Locomotive, open a terminal, then run 'rake > rails:freeze:gems'. I get this error: > > $ rake rails:freeze:gems > (in /Users/johnd/docs) > /Users/johnd/docs/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 Odd. I've no idea. Anyone else sucessfully/unsucessfully freezing rails 1.2.1? Best, -r (See full trace by running task with --trace) > > _______________________________________________ > 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/20070122/2fc65d18/attachment.htm From ryan.raaum at gmail.com Mon Jan 22 14:05:46 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Mon Jan 22 14:05:52 2007 Subject: [Locomotive-users] Locomotive and Apache? In-Reply-To: References: Message-ID: On 1/20/07, Rich Morin wrote: > > At 5:11 PM -0700 1/6/07, Grant Neufeld wrote: > > At 2:47 PM -0800 1/6/07, Rich Morin wrote: > >>Now I'm looking into adding Locomotive to the mix. > > ... > >>I'll be needing to tie Rails into the existing Apache setup. > > > > Here's a (kind of) quick and dirty way (no software installs/builds > > except your existing apache, Locomotive and a simple StartupItem). > > ... > > I've been playing with this, quite successfully in general, but I'm > getting some undesirable behavior. What I'm trying to do is map a > virtual host to different servers, based on the requested URL: > > > ServerName hack.cfcl.com > ServerAdmin rdm@cfcl.com > ErrorLog /dev/null > CustomLog /dev/null common > ProxyRequests Off > ProxyPass /play http://192.168.1.205:3000 > ProxyPassReverse /play http://192.168.1.205:3000 > ProxyPass / http://192.168.1.205/hack > ProxyPassReverse / http://192.168.1.205/hack > > > This resolves URLS as follows: > > http://hack.cfcl.com/ > > maps to port 80 (Apache) and the "hack" directory > > http://hack.cfcl.com/play/monkeys/list > > maps to port 3000 (Locomotive) > > The "undesirable behavior" is that the "Address" line in my web > browser is displaying "http://cerberus.cfcl.com/hack/" in the > first (Apache) case. I'd much prefer that it just show the URL > as entered. Help? I think you're looking for ProxyPreserveHost, check out the mod_proxy docs: http://httpd.apache.org/docs/2.0/mod/mod_proxy.html However, I think that directive may not be available in apache 1.3, so you may have to go to 2.0 to get that behavior... Best, -r -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 > _______________________________________________ > 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/20070122/a3aa8257/attachment.htm From grant at grantneufeld.ca Mon Jan 22 16:28:48 2007 From: grant at grantneufeld.ca (Grant Neufeld) Date: Mon Jan 22 16:29:27 2007 Subject: [Locomotive-users] Virtual Hosts problem In-Reply-To: References: Message-ID: At 6:31 PM -0800 1/20/07, Rich Morin wrote: > > ServerName xyz.cfcl.com > ServerAdmin rdm@cfcl.com > ErrorLog /dev/null > CustomLog /dev/null common > ProxyRequests Off > ProxyPass / http://fido.cfcl.com:3002 > ProxyPassReverse / http://fido.cfcl.com:3002 > Does it work if you add: ProxyPreserveHost On to that VirtualHost? Also, in my VirtualHost configs I append a trailing slash: ProxyPass / http://fido.cfcl.com:3002/ ProxyPassReverse / http://fido.cfcl.com:3002/ From dnsstaiger at gmx.net Tue Jan 23 00:59:26 2007 From: dnsstaiger at gmx.net (Dennis Staiger) Date: Tue Jan 23 00:59:35 2007 Subject: [Locomotive-users] January Bundle fails Message-ID: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> Hi, when I use the September bundle, everything works fine (Rails 1.1). When I use the new January Standard bundle, mongrel does not start up correctly. Here are the steps that cause this problem: 1. Create a new application with the January bundle 2. Start the application 3. Preview in browser (Safari) -> error message: Safari can?t open the page ?http://localhost:3002/? because it could not connect to the server ?localhost?. Again, everything works fine with the September bundle. I have no other Rails app running. Below is the console output for these 3 steps. It looks like no pid for mongrel gets generated. Any suggestions? Thank you! Dennis ===== Monday, January 22, 2007 7:39:49 PM US/Eastern ===== *** 1. Creating the application create create app/controllers create app/helpers create app/models create app/views/layouts create config/environments create components create db create doc create lib create lib/tasks create log create public/images create public/javascripts create public/stylesheets create script/performance create script/process create test/fixtures create test/functional create test/integration create test/mocks/development create test/mocks/test create test/unit create vendor create vendor/plugins create tmp/sessions create tmp/sockets create tmp/cache create tmp/pids create Rakefile create README create app/controllers/application.rb create app/helpers/application_helper.rb create test/test_helper.rb create config/database.yml create config/routes.rb create public/.htaccess create config/boot.rb create config/environment.rb create config/environments/production.rb create config/environments/development.rb create config/environments/test.rb create script/about create script/breakpointer create script/console create script/destroy create script/generate create script/performance/benchmarker create script/performance/profiler create script/process/reaper create script/process/spawner create script/process/inspector create script/runner create script/server create script/plugin create public/dispatch.rb create public/dispatch.cgi create public/dispatch.fcgi create public/404.html create public/500.html create public/index.html create public/favicon.ico create public/robots.txt create public/images/rails.png create public/javascripts/prototype.js create public/javascripts/effects.js create public/javascripts/dragdrop.js create public/javascripts/controls.js create public/javascripts/application.js create doc/README_FOR_APP create log/server.log create log/production.log create log/development.log create log/test.log *** 2. Starting the server Starting mongrel on http://localhost:3004 in development mode pid: *** 3. Preview in Safari -> no output *** 4. Stopping the server: /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/bin/ terminate:168:in `get_pid': Could not find pid file: /Volumes/hd_data/ Sites/testapp2/log/locomotive.pid (TerminateApp::PidFileMissingError) from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/bin/terminate:117:in `initialize' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/bin/terminate:188:in `new' from /Applications/Locomotive2/Bundles/ standardRailsJan2007.locobundle/bin/terminate:188 From ryan.raaum at gmail.com Tue Jan 23 01:58:36 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 23 01:58:41 2007 Subject: [Locomotive-users] January Bundle fails In-Reply-To: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> References: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> Message-ID: On 1/22/07, Dennis Staiger wrote: > Hi, > > when I use the September bundle, everything works fine (Rails 1.1). > When I use the new January Standard bundle, mongrel does not start up > correctly. Here are the steps that cause this problem: > > 1. Create a new application with the January bundle > 2. Start the application > 3. Preview in browser (Safari) -> error message: Safari can't open > the page "http://localhost:3002/" because it could not connect to the > server "localhost". Hi Dennis, Which January bundle? What's your system? (10.3 or 10.4; ppc or intel?) Thanks, -r > > Again, everything works fine with the September bundle. I have no > other Rails app running. Below is the console output for these 3 > steps. It looks like no pid for mongrel gets generated. Any suggestions? > > Thank you! > Dennis > > > > > > ===== Monday, January 22, 2007 7:39:49 PM US/Eastern ===== > *** 1. Creating the application > create > create app/controllers > create app/helpers > create app/models > create app/views/layouts > create config/environments > create components > create db > create doc > create lib > create lib/tasks > create log > create public/images > create public/javascripts > create public/stylesheets > create script/performance > create script/process > create test/fixtures > create test/functional > create test/integration > create test/mocks/development > create test/mocks/test > create test/unit > create vendor > create vendor/plugins > create tmp/sessions > create tmp/sockets > create tmp/cache > create tmp/pids > create Rakefile > create README > create app/controllers/application.rb > create app/helpers/application_helper.rb > create test/test_helper.rb > create config/database.yml > create config/routes.rb > create public/.htaccess > create config/boot.rb > create config/environment.rb > create config/environments/production.rb > create config/environments/development.rb > create config/environments/test.rb > create script/about > create script/breakpointer > create script/console > create script/destroy > create script/generate > create script/performance/benchmarker > create script/performance/profiler > create script/process/reaper > create script/process/spawner > create script/process/inspector > create script/runner > create script/server > create script/plugin > create public/dispatch.rb > create public/dispatch.cgi > create public/dispatch.fcgi > create public/404.html > create public/500.html > create public/index.html > create public/favicon.ico > create public/robots.txt > create public/images/rails.png > create public/javascripts/prototype.js > create public/javascripts/effects.js > create public/javascripts/dragdrop.js > create public/javascripts/controls.js > create public/javascripts/application.js > create doc/README_FOR_APP > create log/server.log > create log/production.log > create log/development.log > create log/test.log > > *** 2. Starting the server > Starting mongrel on http://localhost:3004 in development mode > pid: > > *** 3. Preview in Safari -> no output > > *** 4. Stopping the server: > /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/bin/ > terminate:168:in `get_pid': Could not find pid file: /Volumes/hd_data/ > Sites/testapp2/log/locomotive.pid (TerminateApp::PidFileMissingError) > from /Applications/Locomotive2/Bundles/ > standardRailsJan2007.locobundle/bin/terminate:117:in `initialize' > from /Applications/Locomotive2/Bundles/ > standardRailsJan2007.locobundle/bin/terminate:188:in `new' > from /Applications/Locomotive2/Bundles/ > standardRailsJan2007.locobundle/bin/terminate:188 > > _______________________________________________ > 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 dnsstaiger at gmx.net Tue Jan 23 03:00:39 2007 From: dnsstaiger at gmx.net (Dennis Staiger) Date: Tue Jan 23 03:00:55 2007 Subject: [Locomotive-users] January Bundle fails In-Reply-To: References: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> Message-ID: <69AE2563-FA33-410A-8C8F-182763238DF4@gmx.net> Hi Ryan, thanks for your fast response. I have downloaded the official "Standard Rails Bundle Jan 2007 (with Rails 1.2.1)" from the Bundles page: http://prdownloads.sourceforge.net/locomotive/ StandardRailsJan2007.dmg?download I just redownloaded and tried again - same results. I am running 10.4.8 on a PPC G4. Thanks, Dennis On Jan 22, 2007, at 8:58 PM, Ryan Raaum wrote: > On 1/22/07, Dennis Staiger wrote: >> Hi, >> >> when I use the September bundle, everything works fine (Rails 1.1). >> When I use the new January Standard bundle, mongrel does not start up >> correctly. Here are the steps that cause this problem: >> >> 1. Create a new application with the January bundle >> 2. Start the application >> 3. Preview in browser (Safari) -> error message: Safari can't open >> the page "http://localhost:3002/" because it could not connect to the >> server "localhost". > > Hi Dennis, > > Which January bundle? What's your system? (10.3 or 10.4; ppc or > intel?) > > Thanks, > > -r > >> >> Again, everything works fine with the September bundle. I have no >> other Rails app running. Below is the console output for these 3 >> steps. It looks like no pid for mongrel gets generated. Any >> suggestions? >> >> Thank you! >> Dennis >> >> >> >> >> >> ===== Monday, January 22, 2007 7:39:49 PM US/Eastern ===== >> *** 1. Creating the application >> create >> create app/controllers >> create app/helpers >> create app/models >> create app/views/layouts >> create config/environments >> create components >> create db >> create doc >> create lib >> create lib/tasks >> create log >> create public/images >> create public/javascripts >> create public/stylesheets >> create script/performance >> create script/process >> create test/fixtures >> create test/functional >> create test/integration >> create test/mocks/development >> create test/mocks/test >> create test/unit >> create vendor >> create vendor/plugins >> create tmp/sessions >> create tmp/sockets >> create tmp/cache >> create tmp/pids >> create Rakefile >> create README >> create app/controllers/application.rb >> create app/helpers/application_helper.rb >> create test/test_helper.rb >> create config/database.yml >> create config/routes.rb >> create public/.htaccess >> create config/boot.rb >> create config/environment.rb >> create config/environments/production.rb >> create config/environments/development.rb >> create config/environments/test.rb >> create script/about >> create script/breakpointer >> create script/console >> create script/destroy >> create script/generate >> create script/performance/benchmarker >> create script/performance/profiler >> create script/process/reaper >> create script/process/spawner >> create script/process/inspector >> create script/runner >> create script/server >> create script/plugin >> create public/dispatch.rb >> create public/dispatch.cgi >> create public/dispatch.fcgi >> create public/404.html >> create public/500.html >> create public/index.html >> create public/favicon.ico >> create public/robots.txt >> create public/images/rails.png >> create public/javascripts/prototype.js >> create public/javascripts/effects.js >> create public/javascripts/dragdrop.js >> create public/javascripts/controls.js >> create public/javascripts/application.js >> create doc/README_FOR_APP >> create log/server.log >> create log/production.log >> create log/development.log >> create log/test.log >> >> *** 2. Starting the server >> Starting mongrel on http://localhost:3004 in development mode >> pid: >> >> *** 3. Preview in Safari -> no output >> >> *** 4. Stopping the server: >> /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/ >> bin/ >> terminate:168:in `get_pid': Could not find pid file: /Volumes/ >> hd_data/ >> Sites/testapp2/log/locomotive.pid (TerminateApp::PidFileMissingError) >> from /Applications/Locomotive2/Bundles/ >> standardRailsJan2007.locobundle/bin/terminate:117:in `initialize' >> from /Applications/Locomotive2/Bundles/ >> standardRailsJan2007.locobundle/bin/terminate:188:in `new' >> from /Applications/Locomotive2/Bundles/ >> standardRailsJan2007.locobundle/bin/terminate:188 >> >> _______________________________________________ >> 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 > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > From ryan.raaum at gmail.com Tue Jan 23 03:07:47 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 23 03:07:52 2007 Subject: [Locomotive-users] January Bundle fails In-Reply-To: <69AE2563-FA33-410A-8C8F-182763238DF4@gmx.net> References: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> <69AE2563-FA33-410A-8C8F-182763238DF4@gmx.net> Message-ID: On 1/22/07, Dennis Staiger wrote: > Hi Ryan, > > thanks for your fast response. > > I have downloaded the official "Standard Rails Bundle Jan 2007 (with > Rails 1.2.1)" from the Bundles page: > http://prdownloads.sourceforge.net/locomotive/ > StandardRailsJan2007.dmg?download > > I just redownloaded and tried again - same results. > > I am running 10.4.8 on a PPC G4. Do you have the Locomotive2 application folder in /Applications or somewhere else? -r > > Thanks, > Dennis > > > On Jan 22, 2007, at 8:58 PM, Ryan Raaum wrote: > > > On 1/22/07, Dennis Staiger wrote: > >> Hi, > >> > >> when I use the September bundle, everything works fine (Rails 1.1). > >> When I use the new January Standard bundle, mongrel does not start up > >> correctly. Here are the steps that cause this problem: > >> > >> 1. Create a new application with the January bundle > >> 2. Start the application > >> 3. Preview in browser (Safari) -> error message: Safari can't open > >> the page "http://localhost:3002/" because it could not connect to the > >> server "localhost". > > > > Hi Dennis, > > > > Which January bundle? What's your system? (10.3 or 10.4; ppc or > > intel?) > > > > Thanks, > > > > -r > > > >> > >> Again, everything works fine with the September bundle. I have no > >> other Rails app running. Below is the console output for these 3 > >> steps. It looks like no pid for mongrel gets generated. Any > >> suggestions? > >> > >> Thank you! > >> Dennis > >> > >> > >> > >> > >> > >> ===== Monday, January 22, 2007 7:39:49 PM US/Eastern ===== > >> *** 1. Creating the application > >> create > >> create app/controllers > >> create app/helpers > >> create app/models > >> create app/views/layouts > >> create config/environments > >> create components > >> create db > >> create doc > >> create lib > >> create lib/tasks > >> create log > >> create public/images > >> create public/javascripts > >> create public/stylesheets > >> create script/performance > >> create script/process > >> create test/fixtures > >> create test/functional > >> create test/integration > >> create test/mocks/development > >> create test/mocks/test > >> create test/unit > >> create vendor > >> create vendor/plugins > >> create tmp/sessions > >> create tmp/sockets > >> create tmp/cache > >> create tmp/pids > >> create Rakefile > >> create README > >> create app/controllers/application.rb > >> create app/helpers/application_helper.rb > >> create test/test_helper.rb > >> create config/database.yml > >> create config/routes.rb > >> create public/.htaccess > >> create config/boot.rb > >> create config/environment.rb > >> create config/environments/production.rb > >> create config/environments/development.rb > >> create config/environments/test.rb > >> create script/about > >> create script/breakpointer > >> create script/console > >> create script/destroy > >> create script/generate > >> create script/performance/benchmarker > >> create script/performance/profiler > >> create script/process/reaper > >> create script/process/spawner > >> create script/process/inspector > >> create script/runner > >> create script/server > >> create script/plugin > >> create public/dispatch.rb > >> create public/dispatch.cgi > >> create public/dispatch.fcgi > >> create public/404.html > >> create public/500.html > >> create public/index.html > >> create public/favicon.ico > >> create public/robots.txt > >> create public/images/rails.png > >> create public/javascripts/prototype.js > >> create public/javascripts/effects.js > >> create public/javascripts/dragdrop.js > >> create public/javascripts/controls.js > >> create public/javascripts/application.js > >> create doc/README_FOR_APP > >> create log/server.log > >> create log/production.log > >> create log/development.log > >> create log/test.log > >> > >> *** 2. Starting the server > >> Starting mongrel on http://localhost:3004 in development mode > >> pid: > >> > >> *** 3. Preview in Safari -> no output > >> > >> *** 4. Stopping the server: > >> /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/ > >> bin/ > >> terminate:168:in `get_pid': Could not find pid file: /Volumes/ > >> hd_data/ > >> Sites/testapp2/log/locomotive.pid (TerminateApp::PidFileMissingError) > >> from /Applications/Locomotive2/Bundles/ > >> standardRailsJan2007.locobundle/bin/terminate:117:in `initialize' > >> from /Applications/Locomotive2/Bundles/ > >> standardRailsJan2007.locobundle/bin/terminate:188:in `new' > >> from /Applications/Locomotive2/Bundles/ > >> standardRailsJan2007.locobundle/bin/terminate:188 > >> > >> _______________________________________________ > >> 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 > > _______________________________________________ > > 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 dnsstaiger at gmx.net Tue Jan 23 03:09:17 2007 From: dnsstaiger at gmx.net (Dennis Staiger) Date: Tue Jan 23 03:09:32 2007 Subject: [Locomotive-users] January Bundle fails In-Reply-To: References: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> <69AE2563-FA33-410A-8C8F-182763238DF4@gmx.net> Message-ID: <2D763BE3-9FEE-4831-A644-1333177AD3B1@gmx.net> Yes, it is in the standard location /Applications. Version of Locomotive is 2.0.8. On Jan 22, 2007, at 10:07 PM, Ryan Raaum wrote: > On 1/22/07, Dennis Staiger wrote: >> Hi Ryan, >> >> thanks for your fast response. >> >> I have downloaded the official "Standard Rails Bundle Jan 2007 (with >> Rails 1.2.1)" from the Bundles page: >> http://prdownloads.sourceforge.net/locomotive/ >> StandardRailsJan2007.dmg?download >> >> I just redownloaded and tried again - same results. >> >> I am running 10.4.8 on a PPC G4. > > Do you have the Locomotive2 application folder in /Applications or > somewhere else? > > -r > >> >> Thanks, >> Dennis >> >> >> On Jan 22, 2007, at 8:58 PM, Ryan Raaum wrote: >> >> > On 1/22/07, Dennis Staiger wrote: >> >> Hi, >> >> >> >> when I use the September bundle, everything works fine (Rails >> 1.1). >> >> When I use the new January Standard bundle, mongrel does not >> start up >> >> correctly. Here are the steps that cause this problem: >> >> >> >> 1. Create a new application with the January bundle >> >> 2. Start the application >> >> 3. Preview in browser (Safari) -> error message: Safari can't open >> >> the page "http://localhost:3002/" because it could not connect >> to the >> >> server "localhost". >> > >> > Hi Dennis, >> > >> > Which January bundle? What's your system? (10.3 or 10.4; ppc or >> > intel?) >> > >> > Thanks, >> > >> > -r >> > >> >> >> >> Again, everything works fine with the September bundle. I have no >> >> other Rails app running. Below is the console output for these 3 >> >> steps. It looks like no pid for mongrel gets generated. Any >> >> suggestions? >> >> >> >> Thank you! >> >> Dennis >> >> >> >> >> >> >> >> >> >> >> >> ===== Monday, January 22, 2007 7:39:49 PM US/Eastern ===== >> >> *** 1. Creating the application >> >> create >> >> create app/controllers >> >> create app/helpers >> >> create app/models >> >> create app/views/layouts >> >> create config/environments >> >> create components >> >> create db >> >> create doc >> >> create lib >> >> create lib/tasks >> >> create log >> >> create public/images >> >> create public/javascripts >> >> create public/stylesheets >> >> create script/performance >> >> create script/process >> >> create test/fixtures >> >> create test/functional >> >> create test/integration >> >> create test/mocks/development >> >> create test/mocks/test >> >> create test/unit >> >> create vendor >> >> create vendor/plugins >> >> create tmp/sessions >> >> create tmp/sockets >> >> create tmp/cache >> >> create tmp/pids >> >> create Rakefile >> >> create README >> >> create app/controllers/application.rb >> >> create app/helpers/application_helper.rb >> >> create test/test_helper.rb >> >> create config/database.yml >> >> create config/routes.rb >> >> create public/.htaccess >> >> create config/boot.rb >> >> create config/environment.rb >> >> create config/environments/production.rb >> >> create config/environments/development.rb >> >> create config/environments/test.rb >> >> create script/about >> >> create script/breakpointer >> >> create script/console >> >> create script/destroy >> >> create script/generate >> >> create script/performance/benchmarker >> >> create script/performance/profiler >> >> create script/process/reaper >> >> create script/process/spawner >> >> create script/process/inspector >> >> create script/runner >> >> create script/server >> >> create script/plugin >> >> create public/dispatch.rb >> >> create public/dispatch.cgi >> >> create public/dispatch.fcgi >> >> create public/404.html >> >> create public/500.html >> >> create public/index.html >> >> create public/favicon.ico >> >> create public/robots.txt >> >> create public/images/rails.png >> >> create public/javascripts/prototype.js >> >> create public/javascripts/effects.js >> >> create public/javascripts/dragdrop.js >> >> create public/javascripts/controls.js >> >> create public/javascripts/application.js >> >> create doc/README_FOR_APP >> >> create log/server.log >> >> create log/production.log >> >> create log/development.log >> >> create log/test.log >> >> >> >> *** 2. Starting the server >> >> Starting mongrel on http://localhost:3004 in development mode >> >> pid: >> >> >> >> *** 3. Preview in Safari -> no output >> >> >> >> *** 4. Stopping the server: >> >> /Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/ >> >> bin/ >> >> terminate:168:in `get_pid': Could not find pid file: /Volumes/ >> >> hd_data/ >> >> Sites/testapp2/log/locomotive.pid >> (TerminateApp::PidFileMissingError) >> >> from /Applications/Locomotive2/Bundles/ >> >> standardRailsJan2007.locobundle/bin/terminate:117:in `initialize' >> >> from /Applications/Locomotive2/Bundles/ >> >> standardRailsJan2007.locobundle/bin/terminate:188:in `new' >> >> from /Applications/Locomotive2/Bundles/ >> >> standardRailsJan2007.locobundle/bin/terminate:188 >> >> >> >> _______________________________________________ >> >> 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 >> > _______________________________________________ >> > 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 > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > From ryan.raaum at gmail.com Tue Jan 23 03:26:03 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Tue Jan 23 03:26:07 2007 Subject: [Locomotive-users] January Bundle fails In-Reply-To: <2D763BE3-9FEE-4831-A644-1333177AD3B1@gmx.net> References: <4AE2394D-8707-463A-82E6-D48C19D612FE@gmx.net> <69AE2563-FA33-410A-8C8F-182763238DF4@gmx.net> <2D763BE3-9FEE-4831-A644-1333177AD3B1@gmx.net> Message-ID: On 1/22/07, Dennis Staiger wrote: > Yes, it is in the standard location /Applications. Version of > Locomotive is 2.0.8. For now, what happens if you add server: lighttpd to config/locomotive.yml ? -r > > > On Jan 22, 2007, at 10:07 PM, Ryan Raaum wrote: > > > On 1/22/07, Dennis Staiger wrote: > >> Hi Ryan, > >> > >> thanks for your fast response. > >> > >> I have downloaded the official "Standard Rails Bundle Jan 2007 (with > >> Rails 1.2.1)" from the Bundles page: > >> http://prdownloads.sourceforge.net/locomotive/ > >> StandardRailsJan2007.dmg?download > >> > >> I just redownloaded and tried again - same results. > >> > >> I am running 10.4.8 on a PPC G4. > > > > Do you have the Locomotive2 application folder in /Applications or > > somewhere else? > > > > -r > > > >> > >> Thanks, > >> Dennis > >> > >> > >> On Jan 22, 2007, at 8:58 PM, Ryan Raaum wrote: > >> > >> > On 1/22/07, Dennis Staiger wrote: > >> >> Hi, > >> >> > >> >> when I use the September bundle, everything works fine (Rails > >> 1.1). > >> >> When I use the new January Standard bundle, mongrel does not > >> start up > >> >> correctly. Here are the steps that cause this problem: > >> >> > >> >> 1. Create a new application with the January bundle > >> >> 2. Start the application > >> >> 3. Preview in browser (Safari) -> error message: Safari can't open > >> >> the page "http://localhost:3002/" because it could not connect > >> to the > >> >> server "localhost". > >> > > >> > Hi Dennis, > >> > > >> > Which January bundle? What's your system? (10.3 or 10.4; ppc or > >> > intel?) > >> > > >> > Thanks, > >> > > >> > -r > >> > > >> >> > >> >> Again, everything works fine with the September bundle. I have no > >> >> other Rails app running. Below is the console output for these 3 > >> >> steps. It looks like no pid for mongrel gets generated. Any >