Welcome Guest | Login

question on using svn and capistrano?

hello, i am learning to use these tools but i am confused on how to do
this.

basically i would like to be able to launch my project the way its suppose to. i hear many nice things about capistrano and such.

so for the past few months, ive been working on a few rails apps on my
local machine. now that i am rdy to launch, what/how/where do i setup
the svn?

i assume this for initial creation is this correct?

1. set/create a svn repository on my hostingrails account.
2. create a empty rails project skeleton repository on my hostingrails
account
3. check out the skeleton version from the hostingrails account to my local
machine or import my working copy on my local machine into the newly
created repository on my hostingrails account?(which is better?)

next.

now when i need to make changes to my hostingrails application
1. checkout the latest version on my hostingrails account.
2. make my changes on my local machine
3. configure capistrano to my rails app on my local machine
4. run rake deploy?

when do i do the svn commit? after rake deploy or before? or do i need a svn repository on my local machine?

2006-12-27 09:39 AM

also, how do i check out the svn i created on my hosting rails account into my local box? do i type this?


svn co svn+ssh://{username}@{domain or ip}/home/{username}/svn/<projectname>/trunk

i tried that by for some reason, my password kept getting rejected.

2006-12-27 09:06 PM

actually, i can checkout now by typing my password in 3 times. i kept getting the following msg..stdin: is not a tty

2006-12-27 10:11 PM

Hi there - check out this thread for the tty issue.  

Also, this is personal preference of course, but it sounds like you should keep your SVN local, esp if you are the only user.  You'll want to commit before you deploy.  Other than that I think you are thinking about it correctly.  

2006-12-27 10:21 PM

hi william thanks for the answer.

when i do the rake deploy, does my svn on my hostingrails account do anything?

2006-12-28 08:32 AM

Not unless you are telling it to - if you're running svn locally and cap knows it, then it won't  mess with your online repositories.  Capistrano just automates the shell commands that you could otherwise run yourself :)  

2006-12-28 09:10 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.