forgot password?


   
 
Upgrading to Subversion while using Locomotive
Posted: 05 August 2006 05:49 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2006-08-03

I would like to try out the latest subversion.  I am currently running the stable version using Locomotive.  Can anyone provide some guidance on how to switch over without losing my data, logins, etc?  What files do I need to copy over to the new directory?  I am really looking forward to trying out the mobile interface.

Thanks!

Profile
 
 
Posted: 06 August 2006 03:24 PM   [ Ignore ]   [ # 1 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

Off the top of my head:

1) Back up your database.
2) Check out the latest code from subversion.
3) Follow the setup instructions, setting options in database.yml and environment.rb to the same thing you had in the stable version
4) run rake db:migrate to update the database to be compatible with the new code

That’s the basic outline.

Note that the use of the trunk is only recommended for people looking to contribute to the development effort, and even then, not for production data, due to the extremely likelihood of bugs and risk of data loss. If you decide to proceed despite this warning, good luck and we’d welcome more people involved in the development effort, from rails coding to html/css/javascript work to bug reports to refining feature ideas.

Cheers,
Luke

 Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
 
Posted: 18 April 2007 10:00 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  8
Joined  2007-04-12

Same with me, but total noob, how do I run rake? Get command not found on CLI. When find . -name “*rake*” get all kinds of listings within Locomotive, but still not sure which dir I should run from.

Thanks,
n

Profile
 
 
Posted: 19 April 2007 03:46 AM   [ Ignore ]   [ # 3 ]  
Member
Avatar
RankRankRank
Total Posts:  62
Joined  2006-07-18

Hmm. Not sure about Locomotive. My rake is at ‘/opt/local/bin/rake’. Does that help you infer which of yours would be the right one to run?

 Signature 

Luke Melia - Tracks committer - New York, NY - http://www.lukemelia.com/

Profile
 
 
Posted: 19 April 2007 04:42 AM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  28
Joined  2006-06-28

You may want to try, from within Locomotive, ctrl-clicking on the Tracks item and selecting Open Terminal. Then try the commands from there.

Note that I do NOT know what I’m talking about when it comes to things like this, so this could very well be wrong or even dangerous…

 Signature 

Tracks 1.042 on Locomotive / Camino 1.0.1

Profile
 
 
Posted: 20 April 2007 12:09 AM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  8
Joined  2007-04-12

Thanks guys. Luke did you install your RoR using MacPorts or something? Maybe I should too?
Craig
Right click, yeah i bought the mouse, on Locomotive and choosing open terminal gets me to where I need to be, basically my Tracks install dir. Anyhow seems like things were updated properly, but am now getting a weird error when visiting http://0.0.0.0:3000/signup and anyother http://0.0.0.0:3000/*

A punt in the right direction would be much appreciated.
n

Image Attachments
attach.jpg
Profile
 
 
Posted: 20 April 2007 05:07 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  223
Joined  2006-03-05

That’s a weird error.

Is your copy of Tracks really located in /Library/WebServer/Documents… ? On my system, that folder is owned by root/admin, so you might have problems issuing commands there. I would move Tracks to your home folder somewhere.

Did you make sure that you ported your personal settings over from config/database.yml and config/environment.rb to copies made from the trunk version of each of those files? Quite a lot has changed in environment.rb, in particular.

I’m now using Locomotive just to start and stop my server when testing trunk, and I can just go into Terminal to issue commands like rake - no need to use the Terminal built into Locomotive. You just need to cd into your Tracks folder. So, if you have Tracks in ~/Sites/tracks-trunk, then:

cd ~/Sites/tracks-trunk
rake db
:migrate 
Profile
 
 
Posted: 23 April 2007 11:49 PM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  8
Joined  2007-04-12

Moved Tracks within my home and it starts up, but now am getting Auth type not found.
I thik I am going to install tracks & reqs proper, sans Locomotive, and see if that clears things up for me.

Profile
 
 
Posted: 25 April 2007 04:16 PM   [ Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  8
Joined  2007-04-12

Well, Installed everything proper, no Locomotive, following this ( http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx ) guide. One deviation though, couldn’t get rubygems-0.9.2 to install, so I used rubygems-0.9.1 instead ( OSX 10.4.9 PPC). Total breeze, then followed ( http://www.rousette.org.uk/projects/manual/ ) and voila! Tracks subversion running.

Love it, thank you again.

Profile
 
 
Posted: 05 May 2007 05:05 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  223
Joined  2006-03-05

Great! Glad it’s working for you.

Profile