From public at idahoev.com Sat Nov 10 19:54:09 2007 From: public at idahoev.com (Evan Dorn) Date: Sat Nov 10 19:54:15 2007 Subject: [Locomotive-users] Migrate does not create table Message-ID: <06CB6DCE-7D51-4D18-BAA1-84BA4D0D3372@idahoev.com> I'm trying to learn RoR using Locomotive and a number of different tutorials. (I've also tried NetBeans, but any attempt to interact with a database generates the error "cannot convert nil to String", so it's back to Locomotive). In my first test project, I've created a simple create_table migration. "rake db:migrate" runs without any errors, but the table is not created in mySQL. I've confirmed database connectivity by changing the database name; lots of errors are generated in that case, starting with "unknown database". So it sees the DB, but won't actually create the table. Here's the code of the migration (001_people.rb) class People < ActiveRecord::Migration def self.up create_table :people do |table| table.column :firstname, :string table.column :lastname, :string table.column :age, :integer end end def self.down drop_table :people end end And here's the output of rake db:migrate --trace: >>SecretSanta$ rake db:migrate --trace (in /Users/evan/Development/Ruby/SecretSanta/SecretSanta) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump >>SecretSanta$ That would appear to be okay, but if i investigate the DB with either CLI tools or phpMyAdmin, the database is still empty; no tables other than schema_info, which is empty. How do I track this down? Please assist a noob, thanks. Evan Evan Dorn, Ph.D. public@lrdesign.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20071110/c428575f/attachment.htm From ponch at paulwelty.com Sat Nov 10 20:24:09 2007 From: ponch at paulwelty.com (Paul Welty) Date: Sat Nov 10 20:24:18 2007 Subject: [Locomotive-users] Migrate does not create table In-Reply-To: <06CB6DCE-7D51-4D18-BAA1-84BA4D0D3372@idahoev.com> References: <06CB6DCE-7D51-4D18-BAA1-84BA4D0D3372@idahoev.com> Message-ID: <9D2E0709-F1AA-4356-B332-3ADF14B3EAD8@paulwelty.com> Just off the top of my head...maybe your db user doesn't have permissions to create tables? On Nov 10, 2007, at 2:54 PM, Evan Dorn wrote: > I'm trying to learn RoR using Locomotive and a number of different > tutorials. (I've also tried NetBeans, but any attempt to interact > with a database generates the error "cannot convert nil to String", > so it's back to Locomotive). > > In my first test project, I've created a simple create_table > migration. "rake db:migrate" runs without any errors, but the > table is not created in mySQL. I've confirmed database > connectivity by changing the database name; lots of errors are > generated in that case, starting with "unknown database". So it > sees the DB, but won't actually create the table. > > Here's the code of the migration (001_people.rb) > > class People < ActiveRecord::Migration > def self.up > create_table :people do |table| > table.column :firstname, :string > table.column :lastname, :string > table.column :age, :integer > end > end > > def self.down > drop_table :people > end > end > > And here's the output of rake db:migrate --trace: > > >>SecretSanta$ rake db:migrate --trace > (in /Users/evan/Development/Ruby/SecretSanta/SecretSanta) > ** Invoke db:migrate (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute db:migrate > ** Invoke db:schema:dump (first_time) > ** Invoke environment > ** Execute db:schema:dump > >>SecretSanta$ > > That would appear to be okay, but if i investigate the DB with > either CLI tools or phpMyAdmin, the database is still empty; no > tables other than schema_info, which is empty. > > How do I track this down? Please assist a noob, thanks. > Evan > > > Evan Dorn, Ph.D. > public@lrdesign.com > > > > _______________________________________________ > 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/20071110/e0ce0625/attachment.htm From public at idahoev.com Sat Nov 10 21:10:18 2007 From: public at idahoev.com (Evan Dorn) Date: Sat Nov 10 21:10:24 2007 Subject: [Locomotive-users] Migrate does not create table In-Reply-To: <9D2E0709-F1AA-4356-B332-3ADF14B3EAD8@paulwelty.com> References: <06CB6DCE-7D51-4D18-BAA1-84BA4D0D3372@idahoev.com> <9D2E0709-F1AA-4356-B332-3ADF14B3EAD8@paulwelty.com> Message-ID: <65BE0FBD-66E1-4289-BEA2-A2EACBF754CE@idahoev.com> On Nov 10, 2007, at 12:24 PM, Paul Welty wrote: > Just off the top of my head...maybe your db user doesn't have > permissions to create tables? > Some guy on IRC figured it out for me. There was, somehow, an inconsistent version number in schema_info. Deleting that table allowed migrations to work normally. I think a permissions problem would have generated a visible error. Thanks, Ev Evan Dorn, Ph.D. public@lrdesign.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20071110/dcfe2198/attachment.htm From russell.roberts at lifefoundation.org.uk Sat Nov 10 22:00:52 2007 From: russell.roberts at lifefoundation.org.uk (Russell Roberts) Date: Sat Nov 10 22:01:01 2007 Subject: [Locomotive-users] SSL with Locomotive Message-ID: HI Thank you for Locomotive Is there a way to Use SSL with Locomotive. I have SSL installed on my mac and it works to the apache page. Thank you Sorry if this is a double listing From ponch at paulwelty.com Sun Nov 11 02:07:05 2007 From: ponch at paulwelty.com (Paul Welty) Date: Sun Nov 11 02:07:58 2007 Subject: [Locomotive-users] Migrate does not create table In-Reply-To: <65BE0FBD-66E1-4289-BEA2-A2EACBF754CE@idahoev.com> References: <06CB6DCE-7D51-4D18-BAA1-84BA4D0D3372@idahoev.com> <9D2E0709-F1AA-4356-B332-3ADF14B3EAD8@paulwelty.com> <65BE0FBD-66E1-4289-BEA2-A2EACBF754CE@idahoev.com> Message-ID: <379E0844-6C6F-4EAB-8BE2-EB7A27ADFC4A@paulwelty.com> Probably so. I am glad you got it figured out anyhow. On Nov 10, 2007, at 4:10 PM, Evan Dorn wrote: > > On Nov 10, 2007, at 12:24 PM, Paul Welty wrote: >> Just off the top of my head...maybe your db user doesn't have >> permissions to create tables? >> > > Some guy on IRC figured it out for me. There was, somehow, an > inconsistent version number in schema_info. Deleting that table > allowed migrations to work normally. > > I think a permissions problem would have generated a visible error. > > Thanks, > Ev > > > > Evan Dorn, Ph.D. > public@lrdesign.com > > > > _______________________________________________ > 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/20071111/435ec27e/attachment-0001.htm From jason.young at extension.org Wed Nov 14 19:23:41 2007 From: jason.young at extension.org (Jason Young) Date: Wed Nov 14 19:23:53 2007 Subject: [Locomotive-users] Locomotive, Mongrel 1.1.1 Message-ID: <1C8D8B05-7C7C-4B71-A62A-D1D871AAB30B@extension.org> Hey, Anyone using Locomotive and Mongrel 1.1.1? (Leopard, with a bundle derived from the Mar 07 bundle with an updated gem set). I've had a devil of a time today getting Locomotive to start mongrel 1.1.1 - clicking start/restart would given me nothing, no logs, nothing, the STDERR.write in run_mongrel in the launch script would happily write the "Starting mongrel on... " line to the system.log - but that's it. Running mongrel_rails from the terminal itself was perfectly fine - other than the warning you'll get with Ruby 1.8.5 written to stderr: ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix I finally added a: STDERR.write "stderr : #{ stderr.read.strip }" to see if there was anything else on the stderr handle returned by the Open4.popen4 - to see if there were other errors. Lo and behold, that made things happy. All this stdout/stderr opening and closing is honestly a bit over my head (or rather experience) - the only thing I can figure is that the popen4 pulled stderr out from underneath ruby and/or mongrel_rails itself? And not until that out ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix text is pulled off that file handle can it proceed? Jason ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jason Young -- Systems Manager, eXtension http://about.extension.org/wiki/Jason_Young ______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20071114/6233783c/attachment.htm From email at daveringoen.com Mon Nov 19 18:50:37 2007 From: email at daveringoen.com (Dave Ringoen) Date: Mon Nov 19 18:51:03 2007 Subject: [Locomotive-users] 10.4.11 and slow Locomotive Message-ID: I upgraded to Tiger 10.4.11, and now Locomotive starts up very slowly, and restarts of lighttpd/fastcgi are very slow. Anyone else seeing that behavior or know of a fix? Dave Ringoen From fzelders at gmail.com Tue Nov 20 16:01:47 2007 From: fzelders at gmail.com (Fred Zelders) Date: Tue Nov 20 16:01:55 2007 Subject: [Locomotive-users] unsubscribe In-Reply-To: <20071120120101.0970650783@one.textdrive.com> References: <20071120120101.0970650783@one.textdrive.com> Message-ID: On 20 nov 2007, at 13:01, locomotive-users-request@lists.raaum.org wrote: > Send Locomotive-users mailing list submissions to > locomotive-users@lists.raaum.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.raaum.org/mailman/listinfo/locomotive-users > or, via email, send a message with subject or body 'help' to > locomotive-users-request@lists.raaum.org > > You can reach the person managing the list at > locomotive-users-owner@lists.raaum.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Locomotive-users digest..." > > > Today's Topics: > > 1. 10.4.11 and slow Locomotive (Dave Ringoen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 19 Nov 2007 11:50:37 -0700 > From: Dave Ringoen > Subject: [Locomotive-users] 10.4.11 and slow Locomotive > To: locomotive-users@lists.raaum.org > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > I upgraded to Tiger 10.4.11, and now Locomotive starts up very > slowly, and restarts of lighttpd/fastcgi are very slow. Anyone else > seeing that behavior or know of a fix? > > Dave Ringoen > > > ------------------------------ > > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users > > > End of Locomotive-users Digest, Vol 25, Issue 3 > *********************************************** From gerda at deds.nl Sun Nov 25 12:33:14 2007 From: gerda at deds.nl (Gerda de Vries) Date: Sun Nov 25 12:33:24 2007 Subject: [Locomotive-users] 10.4.11 and slow Locomotive Message-ID: <50667.24.132.23.217.1195993994.squirrel@service.opendomein.nl> Hi Dave, Op Ma, 19 november, 2007 19:50, schreef Dave Ringoen: > I upgraded to Tiger 10.4.11, and now Locomotive starts up very > slowly, and restarts of lighttpd/fastcgi are very slow. Anyone else > seeing that behavior or know of a fix? I'm also using 10.4.11, but have seen no changes to the speed of Locomotive. Starting up and restarting of applications is still as fast as with 10.4.10. Did you change anything else around the same time? Or, can you find any explanation for this slow behaviour in error/system logs? G. From gerda at deds.nl Sun Nov 25 15:35:59 2007 From: gerda at deds.nl (Gerda de Vries) Date: Sun Nov 25 15:36:08 2007 Subject: [Locomotive-users] New Locomotive bundle? Message-ID: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> Hi, The Ruby on Rails team released version 1.2.6 [1] yesterday. The most recent bundle for Locomotive contains RoR 1.2.3. Does anyone know if it is possible to create a new bundle for Locomotive with this new version? Kind regards, Gerda [1] http://weblog.rubyonrails.org/2007/11/24/ruby-on-rails-1-2-6-security-and-maintenance-release From adam at rokslide.com Sun Nov 25 23:06:31 2007 From: adam at rokslide.com (Adam Salter) Date: Sun Nov 25 23:06:38 2007 Subject: [Locomotive-users] New Locomotive bundle? In-Reply-To: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> References: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> Message-ID: <52EF8F5F-74D1-4EA1-9DB0-69E239C7747E@rokslide.com> If you use the MacPorts bundle, it's compatible with whatever you happen to have installed manually... Like the default Rails for Leopard or another version for 10.4.x That's my suggestion, but maybe we can get an updated package for Locomotive... On 26/11/2007, at 2:35 AM, Gerda de Vries wrote: > Hi, > > The Ruby on Rails team released version 1.2.6 [1] yesterday. The most > recent bundle for Locomotive contains RoR 1.2.3. Does anyone know if > it is > possible to create a new bundle for Locomotive with this new version? > > Kind regards, > > Gerda > > [1] > http://weblog.rubyonrails.org/2007/11/24/ruby-on-rails-1-2-6-security-and-maintenance-release > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From loriolson at mac.com Sun Nov 25 23:59:36 2007 From: loriolson at mac.com (Lori M Olson) Date: Sun Nov 25 23:59:42 2007 Subject: [Locomotive-users] New Locomotive bundle? In-Reply-To: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> References: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> Message-ID: <33D01729-8368-49FE-A680-CD6827239558@mac.com> I haven't done this yet myself, but what I'm going to do is: 1. Make a copy of my Locomotive bundle. 2. Start a Terminal from Locomotive 3. run "gem install rails" That should update the version of Rails installed in your bundle. Regards, Lori On 25-Nov-07, at 8:35 AM, Gerda de Vries wrote: > Hi, > > The Ruby on Rails team released version 1.2.6 [1] yesterday. The most > recent bundle for Locomotive contains RoR 1.2.3. Does anyone know if > it is > possible to create a new bundle for Locomotive with this new version? > > Kind regards, > > Gerda > > [1] > http://weblog.rubyonrails.org/2007/11/24/ruby-on-rails-1-2-6-security-and-maintenance-release > _______________________________________________ > Locomotive-users mailing list > Locomotive-users@lists.raaum.org > http://lists.raaum.org/mailman/listinfo/locomotive-users From ron at agorapr.com Mon Nov 26 01:09:43 2007 From: ron at agorapr.com (Ron Bingham) Date: Mon Nov 26 01:09:58 2007 Subject: [Locomotive-users] New Locomotive bundle? In-Reply-To: <33D01729-8368-49FE-A680-CD6827239558@mac.com> References: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> <33D01729-8368-49FE-A680-CD6827239558@mac.com> Message-ID: <2C482E85-CC80-4E71-B3AF-8DC737C27DBC@agorapr.com> I tried it and got some errors but eventually it installed successfully. See below Bulk updating Gem source index for: http://gems.rubyforge.org Install required dependency activesupport? [Yn] Y Install required dependency activerecord? [Yn] Y Install required dependency actionpack? [Yn] Y Install required dependency actionmailer? [Yn] Y ERROR: While executing gem ... (OpenURI::HTTPError) 404 Not Found ron-binghams-computer:~/thought_log ron$ gem install rails Install required dependency actionmailer? [Yn] Y Install required dependency actionwebservice? [Yn] Y ERROR: While executing gem ... (OpenURI::HTTPError) 404 Not Found ron-binghams-computer:~/thought_log ron$ gem install rails ERROR: While executing gem ... (OpenURI::HTTPError) 404 Not Found ron-binghams-computer:~/thought_log ron$ gem install rails Successfully installed rails-1.2.6 ron-binghams-computer:~/thought_log ron$ Ron Bingham On Nov 25, 2007, at 3:59 PM, Lori M Olson wrote: > I haven't done this yet myself, but what I'm going to do is: > > 1. Make a copy of my Locomotive bundle. > 2. Start a Terminal from Locomotive > 3. run "gem install rails" > > That should update the version of Rails installed in your bundle. > > Regards, Lori > > On 25-Nov-07, at 8:35 AM, Gerda de Vries wrote: > >> Hi, >> >> The Ruby on Rails team released version 1.2.6 [1] yesterday. The most >> recent bundle for Locomotive contains RoR 1.2.3. Does anyone know >> if it is >> possible to create a new bundle for Locomotive with this new version? >> >> Kind regards, >> >> Gerda >> >> [1] >> http://weblog.rubyonrails.org/2007/11/24/ruby-on-rails-1-2-6- >> security-and-maintenance-release >> _______________________________________________ >> 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/20071126/ecbda8e8/attachment.htm From ryan.raaum at gmail.com Mon Nov 26 02:41:02 2007 From: ryan.raaum at gmail.com (Ryan Raaum) Date: Mon Nov 26 02:41:09 2007 Subject: [Locomotive-users] New Locomotive bundle? In-Reply-To: <2C482E85-CC80-4E71-B3AF-8DC737C27DBC@agorapr.com> References: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> <33D01729-8368-49FE-A680-CD6827239558@mac.com> <2C482E85-CC80-4E71-B3AF-8DC737C27DBC@agorapr.com> Message-ID: Hi All, I don't really have the time now to make new bundles ... but if someone else wants to make them, I'm happy to post them :) I've attached the procedures I've followed in the past. -Ryan -------------- next part -------------- # Rails Max #before starting: run sudo once to get authorization rights sudo ls # get set up in a build directory, I make one on the desktop cd /Applications/Locomotive2/Bundles mkdir rmagickRailsMar2007_i386.locobundle cd rmagickRailsMar2007_i386.locobundle mkdir framework cd framework #then begin export MYPREFIX=`pwd` export PATH=$MYPREFIX/bin:/bin:/sbin:/usr/bin:/usr/sbin export DYLD_LIBRARY_PATH=$MYPREFIX/lib export LDFLAGS="-L$MYPREFIX/lib -headerpad_max_install_names" export CFLAGS=-I$MYPREFIX/include export CXXFLAGS=$CFLAGS export CPPFLAGS=$CXXFLAGS curl -O http://svn.macports.org/repository/macports/downloads/DarwinPorts-1.3.2/DarwinPorts-1.3.2.tar.gz tar -xvzf DarwinPorts-*.tar.gz cd DarwinPorts-* ./configure --prefix=$MYPREFIX --with-tcl=/usr/lib make sudo make install cd .. rm -rf DarwinPorts-* sudo port selfupdate sudo port install bzip2 sudo port install zlib sudo port install readline sudo port install fcgi sudo port install libiconv sudo port install openssl sudo port install libevent sudo port install memcached sudo port install sqlite3 sudo port install pcre sudo port install lighttpd +ssl sudo port install expat sudo port install gettext curl -O ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz tar xzvf ruby-*.tar.gz cd ruby-* ./configure --prefix=$MYPREFIX --enable-pthread --with-readline-dir=$MYPREFIX make sudo make install sudo make install-doc cd .. sudo rm -rf ruby* sudo port install libxml2 # port of libexif broken because of translation incompatibilites # 18 Mar 07 - still broken # sudo port install libexif curl -O http://superb-east.dl.sourceforge.net/sourceforge/libexif/libexif-0.6.13.tar.bz2 bunzip2 libexif* tar xvf libexif* cd libexif* ./configure --prefix=$MYPREFIX --disable-rpath --disable-nls make sudo make install # part of the doc install for make install fails cd .. rm -rf libexif-* sudo port install jpeg sudo port install jasper sudo port install jbigkit sudo port install libpng sudo port install libwmf # tiff port is currently (30 Apr 06) broken on both 10.3 and 10.4 # needed to copy older portfile into var/db/dports/sources/rsync. etc # get older portfile from cvs: # http://cvs.opendarwin.org/cgi-bin/cvsweb.cgi/dports/graphics/tiff/ # 03 Jan 07 seems to be good now sudo port install tiff sudo port install lcms sudo port install freetype # will need to find ghostscript-fonts-std-8.11.tar.gz and ghostscript-fonts-other-6.0.tar.gz # from some other source as the port source fails. # http://www.filewatcher.com is a good place to search # 18 Mar 07 - fonts seem ok now sudo port install ghostscript #sudo port install ImageMagick +lcms +jbig +wmf +jpeg2 +darwin_6 sudo port install ImageMagick +lcms +wmf +jbig +jpeg2 +gs +nox11 sudo port install freeimage curl -O http://easynews.dl.sourceforge.net/sourceforge/ruby-ldap/ruby-ldap-0.9.7.tar.gz tar -xvzf ruby-ldap-*.tar.gz cd ruby-ldap-* ruby extconf.rb --with-openldap2 make sudo make install cd .. rm -rf ruby-ldap-* curl -L http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz > rubygems-0.9.2.tgz tar -xvzf rubygems-*.tgz cd rubygems-* sudo ruby setup.rb cd .. rm -rf rubygems-* sudo gem install fcgi sudo gem install sqlite3-ruby --source http://code.whytheluckystiff.net # make selection sudo gem install postgres-pr sudo gem install rake sudo gem install rails --include-dependencies sudo gem install capistrano --include-dependencies sudo gem install capistrano-ext sudo gem install mongrel --include-dependencies # answer question sudo gem install mongrel_config --include-dependencies sudo gem install mongrel_status curl -O http://tmtm.org/downloads/mysql/ruby/mysql-ruby-2.7.1.tar.gz tar -xvzf mysql-ruby-* cd mysql-ruby-* ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config make sudo make install cd .. rm -rf mysql-ruby-* sudo gem install RMagick sudo gem install sparklines --include-dependencies sudo gem install sparklines_generator sudo gem install gruff sudo gem install image_science --include-dependencies sudo gem install RedCloth -v 3.0.3 sudo gem install BlueCloth sudo gem install syntax sudo gem install gettext # answer question sudo gem install memcache-client sudo gem install cached_model --include-dependencies sudo gem install ruby-memcache --include-dependencies sudo gem install rspec sudo gem install piston sudo gem install rcov #answer question sudo rm -rf $MYPREFIX/share/skel sudo rm -rf $MYPREFIX/share/libpng sudo rm -rf $MYPREFIX/share/RMagick sudo rm -rf $MYPREFIX/share/darwinports sudo rm -rf $MYPREFIX/etc/ports sudo rm -rf $MYPREFIX/bin/port* sudo rm -rf $MYPREFIX/var sudo cp $MYPREFIX/lib/ImageMagick-6.3.3/config/type-ghostscript.xml $MYPREFIX/lib/ImageMagick-6.3.3/config/base-type-ghostscript.xml # change all base paths in base-type-ghostscript.xml to INITIAL_BUNDLE_PATH sudo perl -pi -e "s#`echo $MYPREFIX`#INITIAL_BUNDLE_PATH/framework#g" $MYPREFIX/lib/ImageMagick-6.3.3/config/base-type-ghostscript.xml # change all the hard-coded ruby paths in ruby scripts in bin sudo perl -pi -e "s#`echo $MYPREFIX/bin/ruby`#/usr/bin/env ruby#g" $MYPREFIX/bin/* sudo chown -R ryan:ryan $MYPREFIX/ -------------- next part -------------- #before starting: run sudo once to get authorization rights sudo ls # get set up in a build directory, I make one on the desktop cd /Applications/Locomotive2/Bundles mkdir standardRailsMar2007.locobundle cd standardRailsMar2007.locobundle mkdir i386 cd i386 #then begin export MYPREFIX=`pwd` export PATH=$MYPREFIX/bin:/bin:/sbin:/usr/bin:/usr/sbin export DYLD_LIBRARY_PATH=$MYPREFIX/lib export LDFLAGS="-L$MYPREFIX/lib -headerpad_max_install_names" export CFLAGS=-I$MYPREFIX/include export CXXFLAGS=$CFLAGS export CPPFLAGS=$CXXFLAGS curl -O http://svn.macports.org/repository/macports/downloads/DarwinPorts-1.3.2/DarwinPorts-1.3.2.tar.gz tar -xvzf DarwinPorts-*.tar.gz cd DarwinPorts-* ./configure --prefix=$MYPREFIX --with-tcl=/usr/lib make sudo make install cd .. rm -rf DarwinPorts-* sudo port selfupdate sudo port install bzip2 sudo port install zlib sudo port install readline sudo port install fcgi sudo port install libiconv sudo port install openssl sudo port install libevent sudo port install memcached sudo port install sqlite3 sudo port install pcre sudo port install lighttpd +ssl sudo port install expat sudo port install gettext curl -O ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz tar xzvf ruby-*.tar.gz cd ruby-* ./configure --prefix=$MYPREFIX --enable-pthread --with-readline-dir=$MYPREFIX --with-openssl-dir=$MYPREFIX make sudo make install sudo make install-doc cd .. sudo rm -rf ruby* curl -O http://easynews.dl.sourceforge.net/sourceforge/ruby-ldap/ruby-ldap-0.9.7.tar.gz tar -xvzf ruby-ldap-*.tar.gz cd ruby-ldap-* ruby extconf.rb --with-openldap2 make sudo make install cd .. rm -rf ruby-ldap-* curl -L http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz > rubygems-0.9.2.tgz tar -xvzf rubygems-*.tgz cd rubygems-* sudo ruby setup.rb cd .. rm -rf rubygems-* sudo gem install fcgi sudo gem install sqlite3-ruby --source http://code.whytheluckystiff.net # make selection sudo gem install postgres-pr sudo gem install rake sudo gem install rails --include-dependencies sudo gem install capistrano --include-dependencies sudo gem install capistrano-ext sudo gem install mongrel --include-dependencies # answer question sudo gem install mongrel_config --include-dependencies sudo gem install mongrel_status curl -O http://tmtm.org/downloads/mysql/ruby/mysql-ruby-2.7.1.tar.gz tar -xvzf mysql-ruby-* cd mysql-ruby-* ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config make sudo make install cd .. rm -rf mysql-ruby-* sudo gem install RedCloth -v 3.0.3 sudo gem install BlueCloth sudo gem install syntax sudo gem install gettext # answer question sudo gem install memcache-client --include-dependencies sudo gem install cached_model --include-dependencies sudo gem install ruby-memcache --include-dependencies sudo gem install rcov #answer question sudo gem install rspec sudo gem install piston sudo rm -rf $MYPREFIX/share/doc sudo rm -rf $MYPREFIX/share/darwinports sudo rm -rf $MYPREFIX/etc/ports sudo rm -rf $MYPREFIX/bin/port* sudo rm -rf $MYPREFIX/var # change all the hard-coded ruby paths in ruby scripts in bin sudo perl -pi -e "s#`echo $MYPREFIX/bin/ruby`#/usr/bin/env ruby#g" $MYPREFIX/bin/* sudo chown -R ryan:ryan $MYPREFIX/ From adam at rokslide.com Tue Nov 27 23:11:22 2007 From: adam at rokslide.com (Adam Salter) Date: Tue Nov 27 23:11:33 2007 Subject: [Locomotive-users] Set the default port number? In-Reply-To: <2C482E85-CC80-4E71-B3AF-8DC737C27DBC@agorapr.com> References: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> <33D01729-8368-49FE-A680-CD6827239558@mac.com> <2C482E85-CC80-4E71-B3AF-8DC737C27DBC@agorapr.com> Message-ID: Is it possible to set the default port number to be something different? Ie At the moment it starts at 3000, which conflicts with running mongrel from the command line. I'd like to have the default port start at, say, 4000 just so that I'm not constantly having to change the port number... Cheers, -Adam From bob.firth at gmail.com Tue Nov 27 23:18:29 2007 From: bob.firth at gmail.com (Bob Firth) Date: Tue Nov 27 23:18:34 2007 Subject: [Locomotive-users] Set the default port number? In-Reply-To: References: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> <33D01729-8368-49FE-A680-CD6827239558@mac.com> <2C482E85-CC80-4E71-B3AF-8DC737C27DBC@agorapr.com> Message-ID: Hi Adam On Nov 28, 2007 10:11 AM, Adam Salter wrote: > Is it possible to set the default port number to be something different? > Ie At the moment it starts at 3000, which conflicts with running > mongrel from the command line. Yep, select the project then hit the "Info" button to set this up. Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20071127/937f754b/attachment.htm From adam at rokslide.com Tue Nov 27 23:46:40 2007 From: adam at rokslide.com (Adam Salter) Date: Tue Nov 27 23:46:46 2007 Subject: [Locomotive-users] Set the default port number? In-Reply-To: References: <51896.24.132.23.217.1196004959.squirrel@service.opendomein.nl> <33D01729-8368-49FE-A680-CD6827239558@mac.com> <2C482E85-CC80-4E71-B3AF-8DC737C27DBC@agorapr.com> Message-ID: <6AE4ED44-EA4D-4FBB-835C-096CBB5192C6@rokslide.com> Oh, I know about that. No I mean the "default" port number. If you create a new project it will always start at 3000... This means that I have to change the port number for every project I start - abit annoying. On 28/11/2007, at 10:18 AM, Bob Firth wrote: > Hi Adam > > On Nov 28, 2007 10:11 AM, Adam Salter wrote: > Is it possible to set the default port number to be something > different? > Ie At the moment it starts at 3000, which conflicts with running > mongrel from the command line. > > Yep, select the project then hit the "Info" button to set this up. > > Bob > _______________________________________________ > 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/20071127/2e6b8759/attachment.htm