From west_mcadams at yahoo.com Tue May 1 03:15:16 2007 From: west_mcadams at yahoo.com (West McAdams) Date: Tue May 1 03:15:23 2007 Subject: [Locomotive-users] Getting started. Locomotive is not creating a rails app folder structure Message-ID: <449333.87227.qm@web54308.mail.yahoo.com> Thanks, George. Unfortunately something must be configured wrong in my system. When I create a new application exactly as you describe below, it appears in the Locomotive window (I can ctrl click it, get info, etc) but when I look at Apps folder directory, it had not created a rails application directory. It has not created anything. And again, the terminal window does not appear when I choose to open it. ----- Original Message ---- From: List Catcher To: West McAdams Sent: Monday, April 30, 2007 12:21:37 AM Subject: Re: [Locomotive-users] I can't get started On Apr 29, 2007, at 8:00 PM, West McAdams wrote: Here may be my issue: I have the Locomotive App and Bundle Folder in a Folder sitting in Applications. Should I have the Locomotive App in Applications by itself? Where should the Bundle Folder be located? Although it is displaying a new Application, it is not creating any folders. Also, the Application Directory will only let me use "~" or "~/" which makes me think I have things in the wrong place. Please help is you can. Here's a run-through of creating a new app: In my Applications folder I have a folder named Locomotive2 Inside that is both Locomotive and the Bundles folder. I launch Locomotive, then select Create New from the Applications menu. I get a window that says Create Rails Application. In that window is a field for the Application Name and a field for the Application Directory. I type in a name like, say, test, then I click on the Choose button next to the directory field. That gives me a standard file dialog. In my Documents folder I have already created a folder called RailsProjects. I navigate to inside of that, then with nothing selected I click the Open button. (It doesn't actually open anything, so think of it as an OK button.) The file dialog goes away and now my Application Directory field looks like this: ~/Documents/RailsProjects (I could have simply typed that in instead) I now click the Create button, and Locomotive does its thing. When it finishes I have a newly created directory called test inside my RailsProjects folder. Inside of test is the complete directory structure of a rails app. Back in Locomotive, if I right-click on test and select Edit in TextMate I get that whole directory opened in TextMate. (I could have also simply dropped the directory on TextMate an accomplished the same thing.) Again back in Locomotive, if I right-click and select OPen Terminal I get a new terminal window that's properly set up for this project. That's it. I'm good to go, and can work on test. I hope this helps! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070501/64a8e157/attachment.htm From me at danray.net Tue May 1 03:34:08 2007 From: me at danray.net (Dan Ray) Date: Tue May 1 03:34:13 2007 Subject: [Locomotive-users] Can't start console--readline problem? Message-ID: Howdy! Thanks for this awesome one-shot-install rails kit. Only problem I've encountered so far is that scripts/console won't start. I get: $ script/console Loading development environment. /usr/lib/ruby/1.8/irb/completion.rb:10:in `require': No such file to load -- readline (LoadError) from /usr/lib/ruby/1.8/irb/completion.rb:10 from /usr/lib/ruby/1.8/irb/init.rb:218:in `require' from /usr/lib/ruby/1.8/irb/init.rb:218:in `load_modules' from /usr/lib/ruby/1.8/irb/init.rb:216:in `each' from /usr/lib/ruby/1.8/irb/init.rb:216:in `load_modules' from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup' from /usr/lib/ruby/1.8/irb.rb:54:in `start' from /usr/bin/irb:1 I've done some googling, and it appears that issues with readline are common. How have you guys solved this? I'm on 10.4.9 using Locomotive 2.0.8. Thanks! --Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070501/028091ae/attachment.htm From west_mcadams at yahoo.com Tue May 1 04:35:20 2007 From: west_mcadams at yahoo.com (West McAdams) Date: Tue May 1 04:35:28 2007 Subject: [Locomotive-users] Re: Getting started. Ruby undefined reference to lchown Message-ID: <5695.72733.qm@web54307.mail.re2.yahoo.com> George, When I opened Locomotive and looked at the Console, I saw this error: dyld: ruby Undefined symbols: ruby undefined reference to _lchown expected to be defined in /usr/lib/libSystem.B.dylib I have not idea what this means, but hopefully you or someone else does. West ----- Original Message ---- From: List Catcher To: West McAdams Sent: Monday, April 30, 2007 11:45:35 PM Subject: Re: Getting started. Locomotive is not creating a rails app folder structure West, I just realized that Locomotive writes to the system log as it's doing things. So if you run the Console app (in Applications/Utilities) You can observe what Locomotive is doing as you create a new app. -George P.S. Here's what I saw: 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From steve at waits.net Tue May 1 06:17:24 2007 From: steve at waits.net (Stephen Waits) Date: Tue May 1 06:17:29 2007 Subject: [Locomotive-users] Can't start console--readline problem? In-Reply-To: References: Message-ID: <197637BA-8DDF-46FB-B966-18213BB2FD0A@waits.net> On Apr 30, 2007, at 8:34 PM, Dan Ray wrote: > Only problem I've encountered so far is that scripts/console won't > start. I get: Hi Dan, Did you start Terminal from inside Locomotive? To do this, * Launch Locomotive * Right-Click on one of your projects and choose "Open Terminal" --Steve From me at danray.net Tue May 1 12:37:23 2007 From: me at danray.net (Dan Ray) Date: Tue May 1 12:37:27 2007 Subject: [Locomotive-users] Can't start console--readline problem? In-Reply-To: <197637BA-8DDF-46FB-B966-18213BB2FD0A@waits.net> References: <197637BA-8DDF-46FB-B966-18213BB2FD0A@waits.net> Message-ID: That did it! I was trying to run it from the standard command line. Given that I usually have several terminals open during development, I'd sort of like to be able to start the console from my standard shell. If I just dump the environment from the "inside Loco" terminal and make my .profile set that up, should that work? I see the things in the Loco-shell's profile that are specific to the bundle used for that project. If I make sure to use the same bundle for all projects, I should be able to get away with that, right? Thanks for your help with this. Using "runner" to interact with the model was getting old! --D On 5/1/07, Stephen Waits wrote: > > > On Apr 30, 2007, at 8:34 PM, Dan Ray wrote: > > > Only problem I've encountered so far is that scripts/console won't > > start. I get: > > Hi Dan, > > Did you start Terminal from inside Locomotive? To do this, > > * Launch Locomotive > * Right-Click on one of your projects and choose "Open Terminal" > > --Steve > > _______________________________________________ > 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/20070501/ee0e80c0/attachment.htm From loriolson at mac.com Tue May 1 15:46:53 2007 From: loriolson at mac.com (Lori M Olson) Date: Tue May 1 15:47:08 2007 Subject: [Locomotive-users] Can't start console--readline problem? In-Reply-To: References: <197637BA-8DDF-46FB-B966-18213BB2FD0A@waits.net> Message-ID: <990C9163-5A0D-4474-BCD2-828AACD65F31@mac.com> Install the "locomotive" command (Help | Command Line Tool...), and then, run "locomotive" in a Terminal from your Rails app directory. It will echo the help for the locomotive command at you, which includes the command to run in order to set up the paths appropriately. Regards, Lori On 1-May-07, at 6:37 AM, Dan Ray wrote: > That did it! I was trying to run it from the standard command line. > > Given that I usually have several terminals open during > development, I'd sort of like to be able to start the console from > my standard shell. If I just dump the environment from the "inside > Loco" terminal and make my .profile set that up, should that work? > I see the things in the Loco-shell's profile that are specific to > the bundle used for that project. If I make sure to use the same > bundle for all projects, I should be able to get away with that, > right? > > Thanks for your help with this. Using "runner" to interact with the > model was getting old! > > --D > > > On 5/1/07, Stephen Waits < steve@waits.net> wrote: > On Apr 30, 2007, at 8:34 PM, Dan Ray wrote: > > > Only problem I've encountered so far is that scripts/console won't > > start. I get: > > Hi Dan, > > Did you start Terminal from inside Locomotive? To do this, > > * Launch Locomotive > * Right-Click on one of your projects and choose "Open Terminal" > > --Steve > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From sas at abstracture.de Wed May 2 09:33:03 2007 From: sas at abstracture.de (Sven A. Schmidt) Date: Wed May 2 09:33:08 2007 Subject: [Locomotive-users] Date.new exception in controller In-Reply-To: <67d4c00e0705020227u1a5bfd87v4631230249bdf008@mail.gmail.com> References: <67d4c00e0705020227u1a5bfd87v4631230249bdf008@mail.gmail.com> Message-ID: <67d4c00e0705020233v1dcc83e4h1c9d060d47a2c751@mail.gmail.com> Hi all, I've posted the problem below on the Ruby on Rails google group, thinking it is a generic rails problem but there were no replies so far. In the meantime I have found that it is in fact specific to Locomotive -- I cannot reproduce the problem on a linux machine. Below is the original problem description. It would be great if anyone could give me a pointer on how I could solve this issue. -------------------------------------------------------- I'm getting an "invalid date" exception when I call, say, t1 = Date.new( 2007, 4, 27 ) in my controller class. I'm puzzled by this, because both in irb but also in script/console (same project) this works fine. I've tried Date.parse, Date.civil -- they all lead to the same error (because they ultimately call the same problematic method). Does anyone know why this doesn't work in the controller? I'm using Locomotive 2.0.8 on OSX, which corresponds to ruby 1.8.6 and rails 1.2.3. The "invalid date" exception is raised in "new!" at lib/ruby/1.8/date.rb:727:in `new!' lib/ruby/1.8/date.rb:729:in `new' Looking at the code in date.rb doesn't ring any bells, either. One thing I noted was that during my attempts to solve this problem I also got lib/ruby/1.8/date.rb:727:in `new!' lib/ruby/1.8/Date.rb:729:in `new' at some point. Note the capital 'D'. Now, this might be significant, because HFS+, the OSX file system, is case-insensitive (but case- preserving). Could there be a problem with file name clashes or is this merely cosmetic? Any input greatly appreciated, Sven -- Dr. Sven A. Schmidt abstracture IT-Beratung GmbH Obere Kirchstr. 7 65344 Eltville fon +49 6123 704 79 60 fax +49 6123 704 79 61 mail sas@abstracture.de HRB 17922, UStID: DE 227941463 Registergericht: Amtsgericht Wiesbaden Gesellschafter: Dr. U. Koch, Dr. S. Schmidt, Dr. V. Sch?nharting Gesch?ftsf?hrer: Dr. U. Koch, Dr. S. Schmidt, Dr. V. Sch?nharting From jim at jimjames.org Wed May 2 12:52:02 2007 From: jim at jimjames.org (Jim James) Date: Wed May 2 12:52:09 2007 Subject: [Locomotive-users] Anyone using the new Aptana/RadRails? Message-ID: <9860D96E-AA46-4163-B5D9-49A795FCBCAE@jimjames.org> Is anyone using the new release of RadRails on the Aptana IDE? (http://www.aptana.com)? I have been using RadRails with Loco for almost a year and love the IDE. Very excited that the js and RDT IDEs will be integrated with RadRails since Aptana took them over. However I'm on a Mac (OS X 10.4.9) and seem unable to get the new Aptana version going for rails. I am getting path errors. I've logged them with Aptana but I'm wondering if anyone else is being successful on the Mac/Loco platform. Jim. From roblucas at lucasandblench.com Sun May 6 15:06:44 2007 From: roblucas at lucasandblench.com (Rob Lucas) Date: Sun May 6 15:06:53 2007 Subject: [Locomotive-users] Re: Getting started. Ruby undefined reference to lchown Message-ID: Hi West, I had exactly the same issue. Googling this error message pulled up other Ruby-related (but not specifically locomotive) things which produce the same error on the same version of OS X as mine- 10.3.9 - perhaps this is what you're using? See for example http://dev.instiki.org/ticket/219 . I noticed that the most recent bundle (standardRailsMar2007.locobundle with Rails 1.2.3) is only for 10.4 onwards. I was trying standardRailsFeb2007.locobundle with Rails 1.2.2 and still having no joy, but since it looked like a version issue I decided to try standardRailsJan2007.locobundle with Rails 1.2.1 as well. This time it worked fine. Maybe there's a compatibility problem between either the bundles from Feb 07 or Rails itself from 1.2.2 upwards, and OS X 10.3? Perhaps this'll solve your problem as well. Rob. > [Locomotive-users] Re: Getting started. Ruby undefined reference to > lchown > West McAdams west_mcadams at yahoo.com > Tue May 1 04:35:20 GMT 2007 > > George, > > When I opened Locomotive and looked at the Console, I saw this error: > > dyld: ruby Undefined symbols: > > ruby undefined reference to _lchown expected to be defined in > /usr/lib/libSystem.B.dylib > > I have not idea what this means, but hopefully you or someone else > does. > > West > > > ----- Original Message ---- > From: List Catcher > To: West McAdams > Sent: Monday, April 30, 2007 11:45:35 PM > Subject: Re: Getting started. Locomotive is not creating a rails app > folder structure > > > > West, > > I just realized that Locomotive writes to the system log as it's > doing things. So if you run the Console app (in Applications/Utilities) > You can observe what Locomotive is doing as you create a new app. > > -George > > P.S. Here's what I saw: > > 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 > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > * Previous message: [Locomotive-users] Can't start > console--readline problem? > * Next message: [Locomotive-users] Date.new exception in controller > * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > > More information about the Locomotive-users mailing list -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 5001 bytes Desc: not available Url : http://one.textdrive.com/pipermail/locomotive-users/attachments/20070506/db6f5e1f/attachment.bin From liehann at iafrica.com Tue May 8 20:42:23 2007 From: liehann at iafrica.com (Liehann Loots) Date: Wed May 9 06:10:11 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start Message-ID: Hi, Running mongrel from the locomotive window doesn't seem to start mongrel. I say this because Firefox is not able to establish a connection to http://localhost:3000. If I open a terminal (via locomotive) and run ruby script/server then I can connect fine. I'm not sure where locomotive logs to so I haven't done much diagnostics yet. Any help would be appreciated. Oh, I'm running Mac Os X 10.3, have the latest locomotive and I'm using the Jan 2007 bundle. Thanks, Liehann From loriolson at mac.com Wed May 9 14:02:04 2007 From: loriolson at mac.com (Lori M Olson) Date: Wed May 9 14:02:13 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: References: Message-ID: <31545CB4-A2D6-471A-9F99-1AC3F452DE0E@mac.com> Try looking in Console.app. If Locomotive is failing, it should be in there. Regards, Lori On 8-May-07, at 2:42 PM, Liehann Loots wrote: > Hi, > > Running mongrel from the locomotive window doesn't seem to start > mongrel. I say > this because Firefox is not able to establish a connection to > http://localhost:3000. > > If I open a terminal (via locomotive) and run ruby script/server > then I can > connect fine. > > I'm not sure where locomotive logs to so I haven't done much > diagnostics yet. > > Any help would be appreciated. > > Oh, I'm running Mac Os X 10.3, have the latest locomotive and I'm > using the Jan > 2007 bundle. > > Thanks, > Liehann > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From geoff at geoffdougherty.com Wed May 9 20:44:36 2007 From: geoff at geoffdougherty.com (Geoff Dougherty) Date: Wed May 9 20:44:41 2007 Subject: [Locomotive-users] ruby-debug and 1.2.3 Message-ID: <87EBF523-DA98-43A5-85AD-9407566D1AD1@geoffdougherty.com> Hi everyone, I just upgraded to the rails 1.2.3 bundle and am trying to restore breakpointing functionality with the ruby-debug gem. I've got the gem installed and have placed the debug code in a method that's giving me errors... and nothing happens. No debug messages on the command line, the page loads with errors, etc. Anyone have experience with this or have suggestions on what I might try to get some breakpointing in my apps? From liehann at iafrica.com Thu May 10 06:32:17 2007 From: liehann at iafrica.com (Liehann Loots) Date: Thu May 10 06:32:31 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: <31545CB4-A2D6-471A-9F99-1AC3F452DE0E@mac.com> Message-ID: <20070510063224.5B9E4108A9@ctb-mesg-1-3.saix.net> Hi Lori, Where do I find Console.app? Interestingly if I run the launch script manually (locomotive's launch script, not script/server) with lighttd the server starts and launch returns a pid. If I run it with mongrel, no pid. Regards, Liehann -----Original Message----- From: locomotive-users-bounces@lists.raaum.org [mailto:locomotive-users-bounces@lists.raaum.org] On Behalf Of Lori M Olson Sent: 09 May 2007 04:02 PM To: locomotive-users@lists.raaum.org Subject: Re: [Locomotive-users] Mongrel doesn't seem to start Try looking in Console.app. If Locomotive is failing, it should be in there. Regards, Lori On 8-May-07, at 2:42 PM, Liehann Loots wrote: > Hi, > > Running mongrel from the locomotive window doesn't seem to start > mongrel. I say > this because Firefox is not able to establish a connection to > http://localhost:3000. > > If I open a terminal (via locomotive) and run ruby script/server > then I can > connect fine. > > I'm not sure where locomotive logs to so I haven't done much > diagnostics yet. > > Any help would be appreciated. > > Oh, I'm running Mac Os X 10.3, have the latest locomotive and I'm > using the Jan > 2007 bundle. > > Thanks, > Liehann > > _______________________________________________ > 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 08/05/2007 02:23 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.6.6/794 - Release Date: 08/05/2007 02:23 PM From grail at goldweb.com.au Thu May 10 06:43:17 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Thu May 10 06:43:31 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: <20070510063224.5B9E4108A9@ctb-mesg-1-3.saix.net> References: <20070510063224.5B9E4108A9@ctb-mesg-1-3.saix.net> Message-ID: <877ECEBD-1653-428E-A84A-F3C9728E68DF@goldweb.com.au> On 10/05/2007, at 16:32 , Liehann Loots wrote: > Where do I find Console.app? Console.app should be found at /Applications/Utilities/Console.app (remember to ask Spotlight, too!) The icon represents a orange phosphor CRT screen, if that helps locate it quickly. Alex From greg.hauptmann.ruby at gmail.com Fri May 11 23:49:37 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Fri May 11 23:49:48 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: <877ECEBD-1653-428E-A84A-F3C9728E68DF@goldweb.com.au> References: <20070510063224.5B9E4108A9@ctb-mesg-1-3.saix.net> <877ECEBD-1653-428E-A84A-F3C9728E68DF@goldweb.com.au> Message-ID: Hi all, I'm having the same problem as Liehann. When launching the application from Locomotive I get the "Unable to connect" when trying to connect to it, but when I "ruby script/server" it seems to work fine. I tried opening Console and noted I got this after (a) starting up the app (b) trying to connect - unsuccessfully and then (c) stopping the app: Starting mongrel on http://localhost:3003 in development mode pid: /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:168:in `get_pid': Could not find pid file: /Users/greg/source/topdonator/log/locomotive.pid (TerminateApp::PidFileMissingError) from /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:117:in `initialize' from /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:188:in `new' from /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:188 Note - I'm using the "Standard Rails March 2007" bundle (although the problem occurred prior to this too). It's probably true to say that I may have updated my Mac version of Rails/Ruby, but I think the ways Locomotive works is that it has it's own copies bundled no? Also in my application I have "frozen" rails, so it is in the vendor directory (not sure if this is significant). Also I note if I create a NEW application in Locomotive via it's create feature, that I can run this OK. Any ideas on how to find out what is happening "under-the-bonnet" when using Locomotive to start the application? Thanks Greg On 5/10/07, Alex Satrapa wrote: > > On 10/05/2007, at 16:32 , Liehann Loots wrote: > > > Where do I find Console.app? > > Console.app should be found at /Applications/Utilities/Console.app > (remember to ask Spotlight, too!) > > The icon represents a orange phosphor CRT screen, if that helps > locate it quickly. > > Alex > > _______________________________________________ > 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/20070511/3e8ab859/attachment.htm From russell.roberts at lifefoundation.org.uk Tue May 15 12:12:22 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Tue May 15 12:12:33 2007 Subject: [Locomotive-users] can't connect to local host 3000 Message-ID: HI I an new to Ruby I jnstalled locomotive and all went well. I then deleted the project I installed and shut down my computer next tome I went to try Ruby on Rails I cannot connect to local host via local host 3000. I can connect to local host with php to my mysql database i would really appreciate some help so I can continue my exploration of this wonderful environment Thank you Russsel From russell.roberts at lifefoundation.org.uk Tue May 15 13:49:22 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Tue May 15 13:49:33 2007 Subject: [Locomotive-users] can't connect to local host 3000 In-Reply-To: References: Message-ID: OK I saw the other guys had some trouble so I looked in console but don't know what I am looking at I would really appreciate some help from the comsole May 15 12:38:58 RussellG5 /usr/sbin/ocspd: starting May 15 12:51:00 RussellG5 natd[201]: failed to write packet back (Can't assign requested address) Terminal Help /XRefStm encountered but not yet supported. Locomotive Help Starting mongrel on http://localhost:3000 in development mode pid: Locomotive Help 2007-05-15 14:44:27.567 Terminal[533] .scriptSuite warning for attribute 'properties' of class 'TerminalApp' in suite 'Terminal': 'NSAppleEventDescriptor' is not a valid type name. 2007-05-15 14:44:27.567 Terminal[533] .scriptSuite warning for attribute 'position' of class 'NSWindow' in suite 'Terminal': 'NSAppleEventDescriptor' is not a valid type name. 2007-05-15 14:44:27.567 Terminal[533] .scriptSuite warning for attribute 'properties' of class 'NSWindow' in suite 'Terminal': 'NSAppleEventDescriptor' is not a valid type name. 2007-05-15 14:44:27.567 Terminal[533] .scriptSuite warning for attribute 'bounds' of class 'NSWindow' in suite 'Terminal': 'NSAppleEventDescriptor' is not a valid type name. 2007-05-15 14:44:27.568 Terminal[533] .scriptSuite warning for result type of command 'doScript' in suite 'Terminal': the type NSString ('utxt') doesn't match the result Apple event code ('****'). From terminal Last login: Tue May 15 13:50:56 on ttyp1 Welcome to Darwin! russellg5:~ russellroberts$ source /private/var/tmp/folders.501/ TemporaryItems/65C4D3C7-02EA-11DC- A86B-0011247F04FC-517-000000CEC2F96A8B.environment.bash russellg5:~/Sites/expenses russellroberts$ ruby script/console Loading development environment. /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ powerpc/lib/ruby/1.8/yaml.rb:133:in `load':ArgumentError: syntax error on line 18, col 2: ` socket: /tmp/mysql.sock' >> THANK YOU RUSSELL On 15 May 2007, at 13:12, Russell Roberts wrote: > HI > > I an new to Ruby I jnstalled locomotive and all went well. I then > deleted the project I installed and shut down my computer > next tome I went to try Ruby on Rails I cannot connect to local > host via local host 3000. > > I can connect to local host with php to my mysql database > > i would really appreciate some help so I can continue my > exploration of this wonderful environment > > Thank you > > Russsel > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > -- > This email has been verified as Virus free > Virus Protection and more available at http://www.plus.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070515/acca58d6/attachment.htm From contact at gilgam.com Tue May 15 13:59:00 2007 From: contact at gilgam.com (NG) Date: Tue May 15 13:59:13 2007 Subject: [Locomotive-users] can't connect to local host 3000 In-Reply-To: References: Message-ID: > > >> HI >> >> I an new to Ruby I jnstalled locomotive and all went well. I then >> deleted the project I installed and shut down my computer >> next tome I went to try Ruby on Rails I cannot connect to local >> host via local host 3000. >> >> I can connect to local host with php to my mysql database >> >> i would really appreciate some help so I can continue my >> exploration of this wonderful environment >> >> Thank you >> >> Russsel well, to get a response on localhost, you have to create a project. If you haven't any, you cna't connect .... Nicolas G ___________________ Conseil informatique et webdesign http://www.gilgam.com contact@gilgam.com From russell.roberts at lifefoundation.org.uk Tue May 15 16:13:36 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Tue May 15 16:13:45 2007 Subject: [Locomotive-users] can't connect to local host 3000 In-Reply-To: References: Message-ID: <469C7801-1BF6-4761-B253-9C2AF4A77EDF@lifefoundation.org.uk> Thanks Nicolas The first steps always the hardest. I had a project but I think I was opening terminal from the menu bar ratther than a right click, which I think changes the path!! Can I change the path manually from the terminlal? Thank you Russell On 15 May 2007, at 14:59, NG wrote: >> >> >>> HI >>> >>> I an new to Ruby I jnstalled locomotive and all went well. I then >>> deleted the project I installed and shut down my computer >>> next tome I went to try Ruby on Rails I cannot connect to local >>> host via local host 3000. >>> >>> I can connect to local host with php to my mysql database >>> >>> i would really appreciate some help so I can continue my >>> exploration of this wonderful environment >>> >>> Thank you >>> >>> Russsel > > well, to get a response on localhost, you have to create a project. > If you haven't any, you cna't connect .... > > Nicolas G > > > ___________________ > Conseil informatique et webdesign > http://www.gilgam.com > contact@gilgam.com > > > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > -- > This email has been verified as Virus free > Virus Protection and more available at http://www.plus.net From greg.hauptmann.ruby at gmail.com Wed May 16 20:00:20 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Wed May 16 20:00:29 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: References: <20070510063224.5B9E4108A9@ctb-mesg-1-3.saix.net> <877ECEBD-1653-428E-A84A-F3C9728E68DF@goldweb.com.au> Message-ID: (bump - would be still very interested if someone had any suggestions here) On 5/12/07, Greg Hauptmann wrote: > > Hi all, > > I'm having the same problem as Liehann. When launching the application > from Locomotive I get the "Unable to connect" when trying to connect to it, > but when I "ruby script/server" it seems to work fine. > > I tried opening Console and noted I got this after (a) starting up the app > (b) trying to connect - unsuccessfully and then (c) stopping the app: > > Starting mongrel on http://localhost:3003 in development mode > pid: > > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:168:in > `get_pid': Could not find pid file: > /Users/greg/source/topdonator/log/locomotive.pid > (TerminateApp::PidFileMissingError) > from > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:117:in > `initialize' > from > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:188:in > `new' > from > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/terminate:188 > > > Note - I'm using the "Standard Rails March 2007" bundle (although the > problem occurred prior to this too). It's probably true to say that I may > have updated my Mac version of Rails/Ruby, but I think the ways Locomotive > works is that it has it's own copies bundled no? Also in my application I > have "frozen" rails, so it is in the vendor directory (not sure if this is > significant). Also I note if I create a NEW application in Locomotive via > it's create feature, that I can run this OK. > > Any ideas on how to find out what is happening "under-the-bonnet" when > using Locomotive to start the application? > > Thanks > Greg > > > On 5/10/07, Alex Satrapa wrote: > > > > On 10/05/2007, at 16:32 , Liehann Loots wrote: > > > > > Where do I find Console.app? > > > > Console.app should be found at /Applications/Utilities/Console.app > > (remember to ask Spotlight, too!) > > > > The icon represents a orange phosphor CRT screen, if that helps > > locate it quickly. > > > > Alex > > > > _______________________________________________ > > 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/20070516/c01946b3/attachment.htm From russell.roberts at lifefoundation.org.uk Wed May 16 20:18:42 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Wed May 16 20:18:49 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: References: <20070510063224.5B9E4108A9@ctb-mesg-1-3.saix.net> <877ECEBD-1653-428E-A84A-F3C9728E68DF@goldweb.com.au> Message-ID: Hi Greg I had problems with starting the server. I resolved this by creating a new project and right clicking it in Locomotive to preview in browser as suggested by Nicolas G Hope it help Russell On 16 May 2007, at 21:00, Greg Hauptmann wrote: > (bump - would be still very interested if someone had any > suggestions here) > > On 5/12/07, Greg Hauptmann < greg.hauptmann.ruby@gmail.com> wrote: > Hi all, > > I'm having the same problem as Liehann. When launching the > application from Locomotive I get the "Unable to connect" when > trying to connect to it, but when I "ruby script/server" it seems > to work fine. > > I tried opening Console and noted I got this after (a) starting up > the app (b) trying to connect - unsuccessfully and then (c) > stopping the app: > > Starting mongrel on http://localhost:3003 in development mode > pid: > > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > bin/terminate:168:in `get_pid': Could not find pid file: /Users/ > greg/source/topdonator/log/locomotive.pid > (TerminateApp::PidFileMissingError) > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:117:in `initialize' > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:188:in `new' > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:188 > > Note - I'm using the "Standard Rails March 2007" bundle (although > the problem occurred prior to this too). It's probably true to say > that I may have updated my Mac version of Rails/Ruby, but I think > the ways Locomotive works is that it has it's own copies bundled > no? Also in my application I have "frozen" rails, so it is in the > vendor directory (not sure if this is significant). Also I note if > I create a NEW application in Locomotive via it's create feature, > that I can run this OK. > > Any ideas on how to find out what is happening "under-the-bonnet" > when using Locomotive to start the application? > > Thanks > Greg > > > > On 5/10/07, Alex Satrapa < grail@goldweb.com.au> wrote: > On 10/05/2007, at 16:32 , Liehann Loots wrote: > > > Where do I find Console.app? > > Console.app should be found at /Applications/Utilities/Console.app > (remember to ask Spotlight, too!) > > The icon represents a orange phosphor CRT screen, if that helps > locate it quickly. > > Alex > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070516/3fd0f559/attachment.htm From thomasbe at gmail.com Thu May 17 13:37:17 2007 From: thomasbe at gmail.com (Thomas Berger) Date: Thu May 17 13:37:23 2007 Subject: [Locomotive-users] Plugin "streamlined" not installing Message-ID: Greetings! Has anyone tried to use Streamlined with Locomotive? I cannot manage to install? Cheers, Thomas -- ????????????? Live long and prosper! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070517/f486b1b8/attachment.htm From grail at goldweb.com.au Fri May 18 01:45:51 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Fri May 18 01:46:09 2007 Subject: [Locomotive-users] SQLite3, NULL vs 'NULL' problem? Message-ID: Has anyone else been using SQLite3 recently? I seem to be having a problem with NULL values being entered into the database (in text columns) as 'NULL' (ie: as a string N-U-L-L, rather than the special value). There's a post at http://weblog.rubyonrails.com/2007/1/29/using- sqlite3-with-rails which indicates that SQLite3 is 'broken' from 3.3.8 onwards - how would I go about resolving this issue: just revert to a previous Locomotive bundle? Alex From grail at goldweb.com.au Fri May 18 01:55:13 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Fri May 18 01:55:31 2007 Subject: [Locomotive-users] Re: SQLite3, NULL vs 'NULL' problem? In-Reply-To: References: Message-ID: <205801BB-B200-43CB-B9D3-65962428FE72@goldweb.com.au> On 18/05/2007, at 11:45 , Alex Satrapa wrote: > Has anyone else been using SQLite3 recently? I seem to be having a > problem with NULL values being entered Correction... having problems with NULL as default values. This doesn't affect one of my programs (the columns are all NOT NULL, with no default), but another program I'm looking at is non-functional :\ Alex From alun.eyre at googlemail.com Sun May 13 17:56:45 2007 From: alun.eyre at googlemail.com (Alun Eyre) Date: Fri May 18 09:13:41 2007 Subject: [Locomotive-users] terminfo issue - clear command not working? Message-ID: Hi, I have downloaded the latest version of Locomotive, with the Mar2007 Rmagick bundle. When I open a terminal (terminal.app, not iterm), and run the 'clear' command, I get the following error message: 'xterm-color': unknown terminal type Note it is using a clear binary supplied with Locomotive, rather than the default one with OS X: /Users/alun/Local_Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/powerpc/bin/clear The version at: /usr/bin/clear does work. I did a search through the recent mail archives, but could not see this specific issue reported. Thanks Alun. From dylan at simplifiedmedia.com Sat May 19 18:43:48 2007 From: dylan at simplifiedmedia.com (Dylan Hassinger) Date: Sat May 19 18:43:53 2007 Subject: [Locomotive-users] help installing/uninstalling Locomotive Message-ID: Hello Locomotive users, I am a total newbie to Rails and Locomotive, and having some problems with the installation process. But first I think I need to uninstall Locomotive. Here's my situation: I downloaded Locomotive yesterday, opened up the disk archive, and then -- I think I made a mistake here -- I ran Locomotive straight from the disk archive on my desktop. I created a couple test projects but was having trouble, then I realized that I had never installed the application to my Applications folder. (oops!) So then I copied the Locomotive app to the applications folder. Then I tried to clean up my desktop, and delete the Locomotive disk archive folder -- but Mac won't let me do it, it says "locomotive is in use." I went ahead and deleted my new Locomotive folder from the Applications folder just for good measure, then went to empty my Trash bin -- and it won't let me empty my trash now either! It says mongrel.log, development.log, and Logomotive.dmg are all in use, and it won't delete them! My end goal is to get this stuff installed. But for now, I just want to uninstall it all!! i.e. delete the archive folder from my desktop and then sucessfully empty my trash. I have gone to Force Quit and there is nothing Rails-related running. I have gone to my user account start up list and there is nothing Rails related in there. I have restarted my machine several times. How do I delete these files that seem to be in use?? Then I can start from scratch again I hope. Any help is appreciated! dylan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070519/38e30cc3/attachment.htm From loriolson at mac.com Sat May 19 18:09:07 2007 From: loriolson at mac.com (Lori M Olson) Date: Sat May 19 18:47:14 2007 Subject: Fwd: [Locomotive-users] terminfo issue - clear command not working? References: Message-ID: <7578BB51-D3BA-4C43-BF6E-B2E5702F50B5@mac.com> Rename or delete the ...powerpc/bin/clear from the bundle, and then you should be using your /usr/bin/clear again. Regards, Lori Begin forwarded message: > From: Alun Eyre > Date: May 13, 2007 10:56:45 AM PDT > To: locomotive-users@lists.raaum.org > Subject: [Locomotive-users] terminfo issue - clear command not > working? > Reply-To: locomotive-users@lists.raaum.org > > Hi, > > I have downloaded the latest version of Locomotive, with the Mar2007 > Rmagick bundle. > When I open a terminal (terminal.app, not iterm), and run the 'clear' > command, I get the following error message: > > 'xterm-color': unknown terminal type > > Note it is using a clear binary supplied with Locomotive, rather than > the default one with OS X: > > /Users/alun/Local_Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/powerpc/bin/clear > > The version at: /usr/bin/clear does work. > > I did a search through the recent mail archives, but could not see > this specific issue reported. > > > Thanks > > Alun. > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From russell.roberts at lifefoundation.org.uk Sat May 19 19:03:33 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Sat May 19 19:03:40 2007 Subject: [Locomotive-users] help installing/uninstalling Locomotive In-Reply-To: References: Message-ID: <81C9289A-7DFA-4670-A51B-955263F2EF7F@lifefoundation.org.uk> HI Dylan I am a newbie also btu have locomotive successfully working. Have you tried restarting your computer then try and empty trash Russell On 19 May 2007, at 19:43, Dylan Hassinger wrote: > Hello Locomotive users, > > I am a total newbie to Rails and Locomotive, and having some > problems with the installation process. But first I think I need to > uninstall Locomotive. Here's my situation: > > I downloaded Locomotive yesterday, opened up the disk archive, and > then -- I think I made a mistake here -- I ran Locomotive straight > from the disk archive on my desktop. I created a couple test > projects but was having trouble, then I realized that I had never > installed the application to my Applications folder. (oops!) So > then I copied the Locomotive app to the applications folder. Then I > tried to clean up my desktop, and delete the Locomotive disk > archive folder -- but Mac won't let me do it, it says "locomotive > is in use." I went ahead and deleted my new Locomotive folder from > the Applications folder just for good measure, then went to empty > my Trash bin -- and it won't let me empty my trash now either! It > says mongrel.log, development.log, and Logomotive.dmg are all in > use, and it won't delete them! > > My end goal is to get this stuff installed. But for now, I just > want to uninstall it all!! i.e. delete the archive folder from my > desktop and then sucessfully empty my trash. > > I have gone to Force Quit and there is nothing Rails-related > running. I have gone to my user account start up list and there is > nothing Rails related in there. I have restarted my machine several > times. > > How do I delete these files that seem to be in use?? Then I can > start from scratch again I hope. Any help is appreciated! > > dylan > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From dylan at simplifiedmedia.com Sat May 19 19:13:37 2007 From: dylan at simplifiedmedia.com (Dylan Hassinger) Date: Sat May 19 19:13:43 2007 Subject: [Locomotive-users] help installing/uninstalling Locomotive In-Reply-To: <81C9289A-7DFA-4670-A51B-955263F2EF7F@lifefoundation.org.uk> References: <81C9289A-7DFA-4670-A51B-955263F2EF7F@lifefoundation.org.uk> Message-ID: Eureka! I had tried restarting, which didn't help, but just now I shut down the system (not just a restart) and now I was able to delete these files. I should have tried that before posting, thanks for the help! On 5/19/07, Russell Roberts wrote: > > HI Dylan > > I am a newbie also btu have locomotive successfully working. > > Have you tried restarting your computer then try and empty trash > > > > Hello Locomotive users, > > > > I am a total newbie to Rails and Locomotive, and having some > > problems with the installation process. But first I think I need to > > uninstall Locomotive. Here's my situation: > > > > I downloaded Locomotive yesterday, opened up the disk archive, and > > then -- I think I made a mistake here -- I ran Locomotive straight > > from the disk archive on my desktop. I created a couple test > > projects but was having trouble, then I realized that I had never > > installed the application to my Applications folder. (oops!) So > > then I copied the Locomotive app to the applications folder. Then I > > tried to clean up my desktop, and delete the Locomotive disk > > archive folder -- but Mac won't let me do it, it says "locomotive > > is in use." I went ahead and deleted my new Locomotive folder from > > the Applications folder just for good measure, then went to empty > > my Trash bin -- and it won't let me empty my trash now either! It > > says mongrel.log, development.log, and Logomotive.dmg are all in > > use, and it won't delete them! > > > > My end goal is to get this stuff installed. But for now, I just > > want to uninstall it all!! i.e. delete the archive folder from my > > desktop and then sucessfully empty my trash. > > > > I have gone to Force Quit and there is nothing Rails-related > > running. I have gone to my user account start up list and there is > > nothing Rails related in there. I have restarted my machine several > > times. > > > > How do I delete these files that seem to be in use?? Then I can > > start from scratch again I hope. Any help is appreciated! > > > > dylan > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070519/59678a43/attachment.htm From dylan at simplifiedmedia.com Sat May 19 19:17:04 2007 From: dylan at simplifiedmedia.com (Dylan Hassinger) Date: Sat May 19 19:17:08 2007 Subject: [Locomotive-users] Installing MySQL for Locomotive? Message-ID: Hello again, Now I am about to install Locomotive (again!) from scratch, but wanted to ask about MySQL -- what steps need do be done setting up MySQL before installing Locomotive? I downloaded the Mac binary and installed it, I guess it's installed (although there's nothing in my Mac's Applications folder, I guess this is to be expected.) - Is there any other MySQL setup I need to do? - How do I access MySQL once it's installed? - Can I installed PHPMyAdmin or another visual MySQL editor? - Is there any Mac-based GUI editor that can view my MySQL databases? thanks much for any help! dylan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070519/3ef6f998/attachment.htm From loriolson at mac.com Sat May 19 19:21:59 2007 From: loriolson at mac.com (Lori M Olson) Date: Sat May 19 19:22:20 2007 Subject: [Locomotive-users] Installing MySQL for Locomotive? In-Reply-To: References: Message-ID: <5FAA1664-AD88-4E5D-8159-54FBE0C9772F@mac.com> On 19-May-07, at 12:17 PM, Dylan Hassinger wrote: > Hello again, > > Now I am about to install Locomotive (again!) from scratch, but > wanted to ask about MySQL -- what steps need do be done setting up > MySQL before installing Locomotive? > > I downloaded the Mac binary and installed it, I guess it's > installed (although there's nothing in my Mac's Applications > folder, I guess this is to be expected.) > > Is there any other MySQL setup I need to do? Check your System Preferences. You should be able to start/stop MySQL from there. > How do I access MySQL once it's installed? Command-line. mysql or mysqladmin commands > Can I installed PHPMyAdmin or another visual MySQL editor? > Is there any Mac-based GUI editor that can view my MySQL databases? CocoaMySQL is one. > > thanks much for any help! > > dylan > > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From russell.roberts at lifefoundation.org.uk Sat May 19 20:03:07 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Sat May 19 20:03:14 2007 Subject: [Locomotive-users] Installing MySQL for Locomotive? In-Reply-To: References: Message-ID: <26303326-6629-4BE1-97EE-E03E3D7F2B54@lifefoundation.org.uk> Hi Dylan I also have mysql set up but not yet used it with ruby. I also recently learnt php and mysql What really helped me was to get some books and a training CD try ebay or amazon having said that; I use Navicat it is fantastic and helps me with my Mysql queries and setting up really easy You can try it out for free but avoid the beta versions they really are beta I installed mysql via this page http://www.entropy.ch/software/MacOSx/mysql/ http://www.freewebmasterhelp.com/tutorials/phpmysql Also there is 4 free chapters on Ruby on rails here free preview http://sitepoint.com/books/rails1/rails1-sample.pdf You can access mysql using navicat till you can do it with ruby I don't know about that yet I am on page 45 of Agile Web development with rails. The 4 preview chapters above talk through the install but I think the ruby rails set up is easy you just need to configure which database to use. Chapter 4 reveals it all If you can't down load it let me know as It is great stuff Hope that helps Russell On 19 May 2007, at 20:17, Dylan Hassinger wrote: > Hello again, > > Now I am about to install Locomotive (again!) from scratch, but > wanted to ask about MySQL -- what steps need do be done setting up > MySQL before installing Locomotive? > > I downloaded the Mac binary and installed it, I guess it's > installed (although there's nothing in my Mac's Applications > folder, I guess this is to be expected.) > > Is there any other MySQL setup I need to do? > How do I access MySQL once it's installed? > Can I installed PHPMyAdmin or another visual MySQL editor? > Is there any Mac-based GUI editor that can view my MySQL databases? > > thanks much for any help! > > dylan > > > _______________________________________________ > 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/20070519/9c67d87c/attachment-0001.htm From rafeco at gmail.com Sat May 19 22:26:12 2007 From: rafeco at gmail.com (Rafe Colburn) Date: Sat May 19 22:26:17 2007 Subject: [Locomotive-users] Installing MySQL for Locomotive? In-Reply-To: References: Message-ID: On 5/19/07, Dylan Hassinger wrote: > > Is there any other MySQL setup I need to do? > How do I access MySQL once it's installed? > Can I installed PHPMyAdmin or another visual MySQL editor? > Is there any Mac-based GUI editor that can view my MySQL databases? > thanks much for any help! You should check out MAMP. It has a MySQL installation out of the box (just like Locomotive) that runs on port 8889. It also has PHP, Apache, and phpMyAdmin. --Rafe From listcatcher at gmail.com Sun May 20 05:02:25 2007 From: listcatcher at gmail.com (George Bailey) Date: Sun May 20 05:03:27 2007 Subject: [Locomotive-users] Installing MySQL for Locomotive? In-Reply-To: References: Message-ID: <3139D7A2-4926-423E-B933-BAF832C0A83A@gmail.com> On May 19, 2007, at 1:17 PM, Dylan Hassinger wrote: > Now I am about to install Locomotive (again!) from scratch, but > wanted to ask about MySQL -- what steps need do be done setting up > MySQL before installing Locomotive? If you want to keep it as easy as possible MAMP and Locomotive is the way to go, as Rafe suggested. You'll be up and running in just a few minutes, and it's all self-contained. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070520/b26e8f0a/attachment.htm From liehann at iafrica.com Sun May 20 17:35:22 2007 From: liehann at iafrica.com (Liehann Loots) Date: Sun May 20 17:35:32 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: Message-ID: <20070520173523.646453482@ctb-mesg-1-2.saix.net> Finally got some time to look into this. The problem seems to be a gem version incompatibility issue. I forget the file, but there is a require_gem line that should just be gem. I found it by manually running the start command, which led to the start_mongrel command (in the locomotive bin directory). That displayed the error on the console. From there I just edited the appropriate file which had the error. Apologies for not naming the exact file but I?m not on the mac right now and I can?t remember the name :-( Regards, Liehann _____ From: locomotive-users-bounces@lists.raaum.org [mailto:locomotive-users-bounces@lists.raaum.org] On Behalf Of Greg Hauptmann Sent: 16 May 2007 10:00 PM To: locomotive-users@lists.raaum.org Subject: Re: [Locomotive-users] Mongrel doesn't seem to start (bump - would be still very interested if someone had any suggestions here) On 5/12/07, Greg Hauptmann wrote: Hi all, I'm having the same problem as Liehann. When launching the application from Locomotive I get the "Unable to connect" when trying to connect to it, but when I "ruby script/server" it seems to work fine. I tried opening Console and noted I got this after (a) starting up the app (b) trying to connect - unsuccessfully and then (c) stopping the app: Starting mongrel on HYPERLINK "http://localhost:3003" \nhttp://localhost:3003 in development mode pid: /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/termin ate:168:in `get_pid': Could not find pid file: /Users/greg/source/topdonator/log/locomotive.pid (TerminateApp::PidFileMissingError) from /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/termin ate:117:in `initialize' from /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/termin ate:188:in `new' from /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/bin/termin ate:188 Note - I'm using the "Standard Rails March 2007" bundle (although the problem occurred prior to this too). It's probably true to say that I may have updated my Mac version of Rails/Ruby, but I think the ways Locomotive works is that it has it's own copies bundled no? Also in my application I have "frozen" rails, so it is in the vendor directory (not sure if this is significant). Also I note if I create a NEW application in Locomotive via it's create feature, that I can run this OK. Any ideas on how to find out what is happening "under-the-bonnet" when using Locomotive to start the application? Thanks Greg On 5/10/07, Alex Satrapa wrote: On 10/05/2007, at 16:32 , Liehann Loots wrote: > Where do I find Console.app? Console.app should be found at /Applications/Utilities/Console.app (remember to ask Spotlight, too!) The icon represents a orange phosphor CRT screen, if that helps locate it quickly. Alex _______________________________________________ Locomotive-users mailing list HYPERLINK "mailto:Locomotive-users@lists.raaum.org" \nLocomotive-users@lists.raaum.org HYPERLINK "http://lists.raaum.org/mailman/listinfo/locomotive-users" \nhttp://lists.raaum.org/mailman/listinfo/locomotive-users No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 16/05/2007 06:05 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: 20/05/2007 07:54 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070520/a459d1d0/attachment.htm From loriolson at mac.com Sun May 20 17:47:09 2007 From: loriolson at mac.com (Lori M Olson) Date: Sun May 20 17:48:13 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: <20070520173523.646453482@ctb-mesg-1-2.saix.net> References: <20070520173523.646453482@ctb-mesg-1-2.saix.net> Message-ID: <2ABC8BEA-C913-48C2-8156-E8F7FAD899BA@mac.com> boot.rb Good catch. Regards, Lori On 20-May-07, at 10:35 AM, Liehann Loots wrote: > Finally got some time to look into this. The problem seems to be a > gem version incompatibility issue. I forget the file, but there is > a require_gem line that should just be gem. > > > > I found it by manually running the start command, which led to the > start_mongrel command (in the locomotive bin directory). That > displayed the error on the console. From there I just edited the > appropriate file which had the error. > > > > Apologies for not naming the exact file but I?m not on the mac > right now and I can?t remember the name L > > > > Regards, > > Liehann > > > > From: locomotive-users-bounces@lists.raaum.org [mailto:locomotive- > users-bounces@lists.raaum.org] On Behalf Of Greg Hauptmann > Sent: 16 May 2007 10:00 PM > To: locomotive-users@lists.raaum.org > Subject: Re: [Locomotive-users] Mongrel doesn't seem to start > > > > (bump - would be still very interested if someone had any > suggestions here) > > On 5/12/07, Greg Hauptmann < greg.hauptmann.ruby@gmail.com> wrote: > > Hi all, > > I'm having the same problem as Liehann. When launching the > application from Locomotive I get the "Unable to connect" when > trying to connect to it, but when I "ruby script/server" it seems > to work fine. > > I tried opening Console and noted I got this after (a) starting up > the app (b) trying to connect - unsuccessfully and then (c) > stopping the app: > > Starting mongrel on http://localhost:3003 in development mode > pid: > > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > bin/terminate:168:in `get_pid': Could not find pid file: /Users/ > greg/source/topdonator/log/locomotive.pid > (TerminateApp::PidFileMissingError) > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:117:in `initialize' > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:188:in `new' > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:188 > > > Note - I'm using the "Standard Rails March 2007" bundle (although > the problem occurred prior to this too). It's probably true to say > that I may have updated my Mac version of Rails/Ruby, but I think > the ways Locomotive works is that it has it's own copies bundled > no? Also in my application I have "frozen" rails, so it is in the > vendor directory (not sure if this is significant). Also I note if > I create a NEW application in Locomotive via it's create feature, > that I can run this OK. > > Any ideas on how to find out what is happening "under-the-bonnet" > when using Locomotive to start the application? > > Thanks > Greg > > > > > On 5/10/07, Alex Satrapa < grail@goldweb.com.au> wrote: > > On 10/05/2007, at 16:32 , Liehann Loots wrote: > > > Where do I find Console.app? > > Console.app should be found at /Applications/Utilities/Console.app > (remember to ask Spotlight, too!) > > The icon represents a orange phosphor CRT screen, if that helps > locate it quickly. > > Alex > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: > 16/05/2007 06:05 PM > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: > 20/05/2007 07:54 AM > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From greg.hauptmann.ruby at gmail.com Mon May 21 10:34:11 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Mon May 21 10:34:20 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: <2ABC8BEA-C913-48C2-8156-E8F7FAD899BA@mac.com> References: <20070520173523.646453482@ctb-mesg-1-2.saix.net> <2ABC8BEA-C913-48C2-8156-E8F7FAD899BA@mac.com> Message-ID: I still can't quite see how to apply this to my situation whereby when I try to start the application (mongrel) that (a) from the Locomotive application it seems as if it starts but (b) when trying to connect to the application via a web browser I get an "Firefox can't establish a connection to the server at localhost:3000.". Update: When I get this error message (i.e. "Firefox can't establish ...") if I do a View Source, the source is actually from the page that I'm expecting. So is as if it got the HTML ok back to the browser but for some reason Firefox is not displaying it correctly. The same problem does exist in Safari as well. Any ideas? On 5/21/07, Lori M Olson wrote: > > boot.rb > > Good catch. > > Regards, Lori > > On 20-May-07, at 10:35 AM, Liehann Loots wrote: > > > Finally got some time to look into this. The problem seems to be a > > gem version incompatibility issue. I forget the file, but there is > > a require_gem line that should just be gem. > > > > > > > > I found it by manually running the start command, which led to the > > start_mongrel command (in the locomotive bin directory). That > > displayed the error on the console. From there I just edited the > > appropriate file which had the error. > > > > > > > > Apologies for not naming the exact file but I'm not on the mac > > right now and I can't remember the name L > > > > > > > > Regards, > > > > Liehann > > > > > > > > From: locomotive-users-bounces@lists.raaum.org [mailto:locomotive- > > users-bounces@lists.raaum.org] On Behalf Of Greg Hauptmann > > Sent: 16 May 2007 10:00 PM > > To: locomotive-users@lists.raaum.org > > Subject: Re: [Locomotive-users] Mongrel doesn't seem to start > > > > > > > > (bump - would be still very interested if someone had any > > suggestions here) > > > > On 5/12/07, Greg Hauptmann < greg.hauptmann.ruby@gmail.com> wrote: > > > > Hi all, > > > > I'm having the same problem as Liehann. When launching the > > application from Locomotive I get the "Unable to connect" when > > trying to connect to it, but when I "ruby script/server" it seems > > to work fine. > > > > I tried opening Console and noted I got this after (a) starting up > > the app (b) trying to connect - unsuccessfully and then (c) > > stopping the app: > > > > Starting mongrel on http://localhost:3003 in development mode > > pid: > > > > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > > bin/terminate:168:in `get_pid': Could not find pid file: /Users/ > > greg/source/topdonator/log/locomotive.pid > > (TerminateApp::PidFileMissingError) > > from /Applications/Locomotive2/Bundles/ > > standardRailsMar2007.locobundle/bin/terminate:117:in `initialize' > > from /Applications/Locomotive2/Bundles/ > > standardRailsMar2007.locobundle/bin/terminate:188:in `new' > > from /Applications/Locomotive2/Bundles/ > > standardRailsMar2007.locobundle/bin/terminate:188 > > > > > > Note - I'm using the "Standard Rails March 2007" bundle (although > > the problem occurred prior to this too). It's probably true to say > > that I may have updated my Mac version of Rails/Ruby, but I think > > the ways Locomotive works is that it has it's own copies bundled > > no? Also in my application I have "frozen" rails, so it is in the > > vendor directory (not sure if this is significant). Also I note if > > I create a NEW application in Locomotive via it's create feature, > > that I can run this OK. > > > > Any ideas on how to find out what is happening "under-the-bonnet" > > when using Locomotive to start the application? > > > > Thanks > > Greg > > > > > > > > > > On 5/10/07, Alex Satrapa < grail@goldweb.com.au> wrote: > > > > On 10/05/2007, at 16:32 , Liehann Loots wrote: > > > > > Where do I find Console.app? > > > > Console.app should be found at /Applications/Utilities/Console.app > > (remember to ask Spotlight, too!) > > > > The icon represents a orange phosphor CRT screen, if that helps > > locate it quickly. > > > > Alex > > > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > > > > > > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: > > 16/05/2007 06:05 PM > > > > > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: > > 20/05/2007 07:54 AM > > > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070521/6620e4c4/attachment-0001.htm From liehann at iafrica.com Tue May 22 06:27:24 2007 From: liehann at iafrica.com (Liehann Loots) Date: Tue May 22 06:27:38 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: Message-ID: <20070522062724.B62C1289A@ctb-mesg9.saix.net> I?ll try to explain. If I go over stuff you already know, my apologies. Also I?m new to the mac so some of my terminology may be a bit pc. So when you click on the start button in locomotive a script is run that launches a web server. By default the web server used is mongrel. You could also use lighttp (supported by locomotive), apache or any number of other webservers. If the script executed successfully the server would start on the port shown in locomotive, 3000 by default. So when the browser connects to localhost (your machine) on port 3000 it would connect to the web server started by locomotive. But because there is a bug / compatibility issue in the script that starts the webserver, the script fails before the webserver is started. So Firefox tries to connect to port 3000 but nothing is listening on that port. Firefox then displays the ?Firefox can?t connect ?? error. You mention that when you ?View Source? in Firefox the source is actually from the page you were expecting. That does sound a little weird, but I suspect what is actually going on is Firefox is generating html, but makes it look like it is from the site you requested, so if you hit the refresh button it will try to reload the page served by your webserver, as opposed to reloading the ?Firefox can?t connect ?? page. So something else you could try, which bypasses locomotive, and should at least get you started, is to manually start the web server. Use locomotive to open a command prompt window (I think the option may be called terminal window, or console). You can get to the option by right-clicking on your project in the locomotive list control. The terminal should open in your project?s directory. (Something else to check, is that locomotive is calling the generate scripts correctly. I started off with an incompatible bundle, I?m on mac os X 10.3 and had to download the January bundle). At the prompt type: scripts/server This should start the web server (if I have the folder and script name wrong, you can use Finder to check). The server is started on port 3000. If there are error messages you will at least have a concrete issue :-), otherwise the server should start ok. If you go back to Firefox and refresh the page you should see your website. Hit ctrl-c (probably apple-c on the mac) in the terminal to stop the server. If that works it shows that your setup is pretty much working. I would then recommend you look for and fix boot.rb as mentioned in the earlier post, which should allow you to use locomotive, which is far more convenient that dropping down to the command prompt. Good luck. If you have problems with the last step ? fixing boot.rb, I?ll fire up my mac and give you a detailed explanation of where to look, what to run etc. which will hopefully get you sorted out. Regards, Liehann _____ From: locomotive-users-bounces@lists.raaum.org [mailto:locomotive-users-bounces@lists.raaum.org] On Behalf Of Greg Hauptmann Sent: 21 May 2007 12:34 PM To: locomotive-users@lists.raaum.org Subject: Re: [Locomotive-users] Mongrel doesn't seem to start I still can't quite see how to apply this to my situation whereby when I try to start the application (mongrel) that (a) from the Locomotive application it seems as if it starts but (b) when trying to connect to the application via a web browser I get an "Firefox can't establish a connection to the server at localhost:3000.". Update: When I get this error message (i.e. "Firefox can't establish ...") if I do a View Source, the source is actually from the page that I'm expecting. So is as if it got the HTML ok back to the browser but for some reason Firefox is not displaying it correctly. The same problem does exist in Safari as well. Any ideas? On 5/21/07, Lori M Olson wrote: boot.rb Good catch. Regards, Lori On 20-May-07, at 10:35 AM, Liehann Loots wrote: > Finally got some time to look into this. The problem seems to be a > gem version incompatibility issue. I forget the file, but there is > a require_gem line that should just be gem. > > > > I found it by manually running the start command, which led to the > start_mongrel command (in the locomotive bin directory). That > displayed the error on the console. From there I just edited the > appropriate file which had the error. > > > > Apologies for not naming the exact file but I'm not on the mac > right now and I can't remember the name L > > > > Regards, > > Liehann > > > > From: HYPERLINK "mailto:locomotive-users-bounces@lists.raaum.org"locomotive-users-bounces@li sts.raaum.org [mailto:HYPERLINK "mailto:locomotive-" locomotive- > HYPERLINK "mailto:users-bounces@lists.raaum.org"users-bounces@lists.raaum.org] On Behalf Of Greg Hauptmann > Sent: 16 May 2007 10:00 PM > To: HYPERLINK "mailto:locomotive-users@lists.raaum.org"locomotive-users@lists.raaum.org > Subject: Re: [Locomotive-users] Mongrel doesn't seem to start > > > > (bump - would be still very interested if someone had any > suggestions here) > > On 5/12/07, Greg Hauptmann < HYPERLINK "mailto:greg.hauptmann.ruby@gmail.com"greg.hauptmann.ruby@gmail.com> wrote: > > Hi all, > > I'm having the same problem as Liehann. When launching the > application from Locomotive I get the "Unable to connect" when > trying to connect to it, but when I "ruby script/server" it seems > to work fine. > > I tried opening Console and noted I got this after (a) starting up > the app (b) trying to connect - unsuccessfully and then (c) > stopping the app: > > Starting mongrel on HYPERLINK "http://localhost:3003"http://localhost:3003 in development mode > pid: > > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > bin/terminate:168:in `get_pid': Could not find pid file: /Users/ > greg/source/topdonator/log/locomotive.pid > (TerminateApp::PidFileMissingError) > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:117:in `initialize' > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle /bin/terminate:188:in `new' > from /Applications/Locomotive2/Bundles/ > standardRailsMar2007.locobundle/bin/terminate:188 > > > Note - I'm using the "Standard Rails March 2007" bundle (although > the problem occurred prior to this too). It's probably true to say > that I may have updated my Mac version of Rails/Ruby, but I think > the ways Locomotive works is that it has it's own copies bundled > no? Also in my application I have "frozen" rails, so it is in the > vendor directory (not sure if this is significant). Also I note if > I create a NEW application in Locomotive via it's create feature, > that I can run this OK. > > Any ideas on how to find out what is happening "under-the-bonnet" > when using Locomotive to start the application? > > Thanks > Greg > > > > > On 5/10/07, Alex Satrapa < HYPERLINK "mailto:grail@goldweb.com.au"grail@goldweb.com.au> wrote: > > On 10/05/2007, at 16:32 , Liehann Loots wrote: > > > Where do I find Console.app? > > Console.app should be found at /Applications/Utilities/Console.app > (remember to ask Spotlight, too!) > > The icon represents a orange phosphor CRT screen, if that helps > locate it quickly. > > Alex > > _______________________________________________ > Locomotive-users mailing list > HYPERLINK "mailto:Locomotive-users@lists.raaum.org"Locomotive-users@lists.raaum.org > HYPERLINK "http://lists.raaum.org/mailman/listinfo/locomotive-users"http://lists.raaum .org/mailman/listinfo/locomotive-users > > > > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: > 16/05/2007 06:05 PM > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: > 20/05/2007 07:54 AM > > _______________________________________________ > Locomotive-users mailing list > HYPERLINK "mailto:Locomotive-users@lists.raaum.org"Locomotive-users@lists.raaum.org > HYPERLINK "http://lists.raaum.org/mailman/listinfo/locomotive-users"http://lists.raaum .org/mailman/listinfo/locomotive-users _______________________________________________ Locomotive-users mailing list HYPERLINK "mailto:Locomotive-users@lists.raaum.org"Locomotive-users@lists.raaum.org HYPERLINK "http://lists.raaum.org/mailman/listinfo/locomotive-users"http://lists.raaum .org/mailman/listinfo/locomotive-users No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 21/05/2007 02:01 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 21/05/2007 02:01 PM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20070522/1e18f63f/attachment.htm From greg.hauptmann.ruby at gmail.com Tue May 22 09:34:34 2007 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Tue May 22 09:34:43 2007 Subject: [Locomotive-users] Mongrel doesn't seem to start In-Reply-To: <20070522062724.B62C1289A@ctb-mesg9.saix.net> References: <20070522062724.B62C1289A@ctb-mesg9.saix.net> Message-ID: Hi Liehann, Starting the server via "ruby script/server" is exactly what I've been doing since I haven't had Locomotive working for this. Re how to fix boot.rb that would be great if you could post some detail of what to do here. I couldn't quite follow your last post sorry. Cheers Greg On 5/22/07, Liehann Loots wrote: > > I'll try to explain. If I go over stuff you already know, my apologies. > Also I'm new to the mac so some of my terminology may be a bit pc. > > > > So when you click on the start button in locomotive a script is run that > launches a web server. By default the web server used is mongrel. You could > also use lighttp (supported by locomotive), apache or any number of other > webservers. > > > > If the script executed successfully the server would start on the port > shown in locomotive, 3000 by default. So when the browser connects to > localhost (your machine) on port 3000 it would connect to the web server > started by locomotive. But because there is a bug / compatibility issue in > the script that starts the webserver, the script fails before the webserver > is started. > > > > So Firefox tries to connect to port 3000 but nothing is listening on that > port. Firefox then displays the "Firefox can't connect ?" error. You mention > that when you "View Source" in Firefox the source is actually from the page > you were expecting. That does sound a little weird, but I suspect what is > actually going on is Firefox is generating html, but makes it look like it > is from the site you requested, so if you hit the refresh button it will try > to reload the page served by your webserver, as opposed to reloading the > "Firefox can't connect ?" page. > > > > So something else you could try, which bypasses locomotive, and should at > least get you started, is to manually start the web server. > > Use locomotive to open a command prompt window (I think the option may be > called terminal window, or console). You can get to the option by > right-clicking on your project in the locomotive list control. The terminal > should open in your project's directory. (Something else to check, is that > locomotive is calling the generate scripts correctly. I started off with an > incompatible bundle, I'm on mac os X 10.3 and had to download the January > bundle). At the prompt type: scripts/server > > This should start the web server (if I have the folder and script name > wrong, you can use Finder to check). The server is started on port 3000. If > there are error messages you will at least have a concrete issue J, > otherwise the server should start ok. If you go back to Firefox and refresh > the page you should see your website. > > Hit ctrl-c (probably apple-c on the mac) in the terminal to stop the > server. > > > > If that works it shows that your setup is pretty much working. I would > then recommend you look for and fix boot.rb as mentioned in the earlier > post, which should allow you to use locomotive, which is far more convenient > that dropping down to the command prompt. > > > > Good luck. If you have problems with the last step ? fixing boot.rb, I'll > fire up my mac and give you a detailed explanation of where to look, what to > run etc. which will hopefully get you sorted out. > > > > Regards, > > Liehann > > > ------------------------------ > > *From:* locomotive-users-bounces@lists.raaum.org [mailto: > locomotive-users-bounces@lists.raaum.org] *On Behalf Of *Greg Hauptmann > *Sent:* 21 May 2007 12:34 PM > *To:* locomotive-users@lists.raaum.org > *Subject:* Re: [Locomotive-users] Mongrel doesn't seem to start > > > > I still can't quite see how to apply this to my situation whereby when I > try to start the application (mongrel) that (a) from the Locomotive > application it seems as if it starts but (b) when trying to connect to the > application via a web browser I get an "Firefox can't establish a connection > to the server at localhost:3000.". > > *Update*: When I get this error message (i.e. "Firefox can't establish > ...") if I do a View Source, the source is actually from the page that I'm > expecting. So is as if it got the HTML ok back to the browser but for some > reason Firefox is not displaying it correctly. The same problem does exist > in Safari as well. > > Any ideas? > > On 5/21/07, *Lori M Olson* wrote: > > boot.rb > > Good catch. > > Regards, Lori > > On 20-May-07, at 10:35 AM, Liehann Loots wrote: > > > Finally got some time to look into this. The problem seems to be a > > gem version incompatibility issue. I forget the file, but there is > > a require_gem line that should just be gem. > > > > > > > > I found it by manually running the start command, which led to the > > start_mongrel command (in the locomotive bin directory). That > > displayed the error on the console. From there I just edited the > > appropriate file which had the error. > > > > > > > > Apologies for not naming the exact file but I'm not on the mac > > right now and I can't remember the name L > > > > > > > > Regards, > > > > Liehann > > > > > > > > From: locomotive-users-bounces@lists.raaum.org [mailto: locomotive- > > users-bounces@lists.raaum.org] On Behalf Of Greg Hauptmann > > Sent: 16 May 2007 10:00 PM > > To: locomotive-users@lists.raaum.org > > Subject: Re: [Locomotive-users] Mongrel doesn't seem to start > > > > > > > > (bump - would be still very interested if someone had any > > suggestions here) > > > > On 5/12/07, Greg Hauptmann < greg.hauptmann.ruby@gmail.com> wrote: > > > > Hi all, > > > > I'm having the same problem as Liehann. When launching the > > application from Locomotive I get the "Unable to connect" when > > trying to connect to it, but when I "ruby script/server" it seems > > to work fine. > > > > I tried opening Console and noted I got this after (a) starting up > > the app (b) trying to connect - unsuccessfully and then (c) > > stopping the app: > > > > Starting mongrel on http://localhost:3003 in development mode > > pid: > > > > /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/ > > bin/terminate:168:in `get_pid': Could not find pid file: /Users/ > > greg/source/topdonator/log/locomotive.pid > > (TerminateApp::PidFileMissingError) > > from /Applications/Locomotive2/Bundles/ > > standardRailsMar2007.locobundle/bin/terminate:117:in `initialize' > > from /Applications/Locomotive2/Bundles/ > > standardRailsMar2007.locobundle /bin/terminate:188:in `new' > > from /Applications/Locomotive2/Bundles/ > > standardRailsMar2007.locobundle/bin/terminate:188 > > > > > > Note - I'm using the "Standard Rails March 2007" bundle (although > > the problem occurred prior to this too). It's probably true to say > > that I may have updated my Mac version of Rails/Ruby, but I think > > the ways Locomotive works is that it has it's own copies bundled > > no? Also in my application I have "frozen" rails, so it is in the > > vendor directory (not sure if this is significant). Also I note if > > I create a NEW application in Locomotive via it's create feature, > > that I can run this OK. > > > > Any ideas on how to find out what is happening "under-the-bonnet" > > when using Locomotive to start the application? > > > > Thanks > > Greg > > > > > > > > > > On 5/10/07, Alex Satrapa < grail@goldweb.com.au> wrote: > > > > On 10/05/2007, at 16:32 , Liehann Loots wrote: > > > > > Where do I find Console.app? > > > > Console.app should be found at /Applications/Utilities/Console.app > > (remember to ask Spotlight, too!) > > > > The icon represents a orange phosphor CRT screen, if that helps > > locate it quickly. > > > > Alex > > > > _______________________________________________ > > Locomotive-users mailing list > > Locomotive-users@lists.raaum.org > > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > > > > > > > > > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: > > 16/05/2007 06:05 PM > > > > > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.467 / Virus Database: 269.7.6/813 - Release Date: > > 20/05/2007 07:54 AM > > > > _______________________________________________ > > 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 > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 21/05/2007 > 02:01 PM > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 21/05/2007 > 02:01 PM > > _______________________________________________ > 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/20070522/85f18788/attachment-0001.htm From ni-di at web.de Wed May 23 14:25:38 2007 From: ni-di at web.de (Niko Dittmann) Date: Wed May 23 14:29:37 2007 Subject: [Locomotive-users] Re: SQLite3, NULL vs 'NULL' problem? In-Reply-To: <205801BB-B200-43CB-B9D3-65962428FE72@goldweb.com.au> References: <205801BB-B200-43CB-B9D3-65962428FE72@goldweb.com.au> Message-ID: Am 18.05.2007 um 03:55 schrieb Alex Satrapa: > Correction... having problems with NULL as default values. This > doesn't affect one of my programs (the columns are all NOT NULL, > with no default), but another program I'm looking at is non- > functional :\ Same problem here? any solution to this? Niko. -- ____________________________ niko dittmann ____________________________ From grail at goldweb.com.au Thu May 24 01:08:44 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Thu May 24 01:08:59 2007 Subject: [Workaround] Re: [Locomotive-users] Re: SQLite3, NULL vs 'NULL' problem? In-Reply-To: References: <205801BB-B200-43CB-B9D3-65962428FE72@goldweb.com.au> Message-ID: <6F7B7B4E-3938-4049-BF6D-AD2E2FEB6347@goldweb.com.au> On 24/05/2007, at 00:25 , Niko Dittmann wrote: > Same problem here? any solution to this? From what I've read, it's a "known bug" from the Ruby on Rails developers' point of view, but a "documented feature" from the SQLite3 developers' point of view. There's a note here about SQLite3 being broken since 3.3.8 (the latest working version is 3.3.7): http://weblog.rubyonrails.org/ 2007/1/29/using-sqlite3-with-rails There's a note here from the SQLite3 developers saying that since 3.3.8+ are "in the wild", it's up to the Rails developers to work around the problem: http://www.sqlite.org/cvstrac/tktview?tn=2203 The core of the problem is that in SQLite3 3.3.7 would report the default value of a column as the actual default value - thus a column defined as "DEFAULT NULL" would show up in the schema as having NULL in the "default" column (that's the SQL "empty field" value). Since 3.3.8, the default column in the schema is populated with a string representation of the SQL value, thus a column defined as "DEFAULT NULL" will have a row in the schema describing the default value as 'NULL' (that's an SQL string containing N-U-L-L). One workaround is to revert back to the standardRailsJan2007 bundle, which ships with SQLite3 3.3.7. The standardRailsFeb2007 bundle contains SQLite3 3.3.13, which has the "broken" schema display. My only problem here is that the application I'm trying to install (Devalot) doesn't seem to want to run under the January bundle, and I can't figure out why - there's nothing in the logs (not even a notification that mongrel or Web brick failed to start). So that's my next problem to solve ;) Perhaps Mr Raaum in his beneficence could ship future versions of Locomotive with 3.3.7 until some resolution has been made on SQLite ticket 2203? Alex From ni-di at web.de Sun May 27 14:21:41 2007 From: ni-di at web.de (Niko Dittmann) Date: Sun May 27 14:21:50 2007 Subject: [Workaround] Re: [Locomotive-users] Re: SQLite3, NULL vs 'NULL' problem? In-Reply-To: <6F7B7B4E-3938-4049-BF6D-AD2E2FEB6347@goldweb.com.au> References: <205801BB-B200-43CB-B9D3-65962428FE72@goldweb.com.au> <6F7B7B4E-3938-4049-BF6D-AD2E2FEB6347@goldweb.com.au> Message-ID: <4E128F5B-B7B4-42D6-BF0C-386DC3403F6A@web.de> 24.05.2007, 03:08 Alex Satrapa (thanks for the answer, Alex): > [?] > The core of the problem is that in SQLite3 3.3.7 would report the > default value of a column as the actual default value - thus a > column defined as "DEFAULT NULL" would show up in the schema as > having NULL in the "default" column (that's the SQL "empty field" > value). Since 3.3.8, the default column in the schema is populated > with a string representation of the SQL value, thus a column > defined as "DEFAULT NULL" will have a row in the schema describing > the default value as 'NULL' (that's an SQL string containing N-U-L-L). > [?] Today I stumbled over another problem and I suspect it to be of the same nature. That's why I didn't use a new thread. I have a migration setting the default value of a column to "astring": t.column :column_name, :string, :default=>"astring" Sqlite now enters "astring" _including_the_quotes_ into the column. This concerns the march and the february bundles (both 3.3.13), but not the january bundle (3.3.7). Unsurprisingly this doesn't concern mysql. As a workaround I just copied the sqlite3 binary from the january bundle (framework/bin) to the march bundle and both glitches - the 'null' as string and the default value in quotes - disappear. If that's the new standard behaviour of sqlite than the rails sqlite database adapter needs to be updated, me thinks. Regards, Niko. -- ____________________________ niko dittmann ____________________________ From ni-di at web.de Sun May 27 15:33:17 2007 From: ni-di at web.de (Niko Dittmann) Date: Sun May 27 15:33:33 2007 Subject: [Workaround] Re: [Locomotive-users] Re: SQLite3, NULL vs 'NULL' problem? In-Reply-To: <4E128F5B-B7B4-42D6-BF0C-386DC3403F6A@web.de> References: <205801BB-B200-43CB-B9D3-65962428FE72@goldweb.com.au> <6F7B7B4E-3938-4049-BF6D-AD2E2FEB6347@goldweb.com.au> <4E128F5B-B7B4-42D6-BF0C-386DC3403F6A@web.de> Message-ID: Am 27.05.2007 um 16:21 schrieb Niko Dittmann: > As a workaround I just copied the sqlite3 binary from the january > bundle (framework/bin) to the march bundle and both glitches - the > 'null' as string and the default value in quotes - disappear. Sorry, I have to correct: This is not working. Too bad! -- ____________________________ niko dittmann ____________________________ From dmason at sarg.ryerson.ca Sun May 27 15:35:06 2007 From: dmason at sarg.ryerson.ca (Dave Mason) Date: Sun May 27 15:35:09 2007 Subject: [Locomotive-users] Feature request: change editor Message-ID: <20070527153506.AA22683836@sarg.ryerson.ca> It would be nice if the Preferences could include choosing an application to use to edit. While I realize that TextMate is very popular, there are many others who are addicted to Emacs, and it would seem very easy (in principle :-) to add. Thanks, Locomotive makes my life on the Rails much simpler! ../Dave From marc.pestana at sbcglobal.net Sun May 27 15:59:29 2007 From: marc.pestana at sbcglobal.net (Marc Kidwell Pestana) Date: Sun May 27 15:59:41 2007 Subject: [Locomotive-users] Rails version and Locomotive Message-ID: <8747049F-7EC9-42C5-947E-0D8AD915AA68@sbcglobal.net> Hello, I've successfully installed and used locomotive to create rails sites. There's just one nagging issue. My current version of rails is 1.2.3, but the environment.yml file under config references rails gem version 1.2.1. This creates problems when I want to use rake, or script generators, or restart my application. So I simply change the value of RAILS_GEM_VERSION to 1.2.3, but then if I restart the locomotive server, I can't reach it anymore. It seems that the version of locomotive I'm using doesn't recognize 1.2.3??? Thank you for your attention, Marc