Welcome Guest | Login

Question regarding SVN repository

Hello,

I set up an SVN repository on my server and have access to it through Subclipse, which is excellent.  I also already have an app running on the server, and a local copy of the project.

Now, as per the Subversion article in the wiki, the repository starts out with an empty Rails shell, separate from the project you may already have running somewhere else in your web space.  Am I correct in thinking, then, that this repository is supposed to act only as a version control and backup area, and that you should update your live app through other means (e.g. FTP), or is the Rails app that is in the Subversion directory supposed to be the live version that is served to visitors?

If the former is the case, is this standard practice?  In other words, is it bad practice to do svn commits, updates and synchronizations on a live app?

I have only a very vague idea of what Capistrano is meant to do; is its purpose to facilitate the push of a stable version from the svn repository to the live app directory?  If so, this would make a lot of sense and basically answer my questions.  If this is its purpose, I should probably look into it.

Thanks!

2008-04-29 04:18 AM

Hi Cilphex -


You'll need to do svn -commit to add a change to the repo. Once the changes have been updated in the repo, you can check out the new version to the server. Capistrano is used to to automate this process. You'll just need to do a "cap deploy" from your local end to check out the new version of your app to the server.

http://www.hostingrails.com/forums/wiki_thread/46




2008-04-29 05:35 AM


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