Feb 5, 2008
Generic-user-small Curtis Hatter 2 posts

Topic: Deploying Rails Applications / Example Problem Chap. 2, pg 22

I’ve run into another problem with following along in the examples. I upgraded OS X to Leopard (full wipe) over the weekend and started reading Deploying Rails Applications again from the beginning.

I followed the examples exactly, creating the directories via svn mkdir, then creating the rails application and checking out trunk into the applications root directory. The commands I ran:


svn mkdir ......
rails ~/deployit
svn checkout file://..../trunk ~/deployit
cd ~/deployit

When it comes to running

svn add .

I get the following error: svn: warning: '.' is already under version control

I looked this up on the SVN FAQ and it says to delete the .svn directories. However, after doing this and I run the command I get the following:


svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory

I eventually rechecked out trunk into the root directory and used --force with the svn add command to get it to work.

Wondering if I did something wrong, or if this should perhaps be mentioned in the footnotes that you may have to force the addition?

Again, this on OS X 10.5.1 and SVN 1.4.4

Thanks.

 
Jan 7, 2008
Generic-user-small Curtis Hatter 2 posts

Topic: Deploying Rails Applications / Chapter 2 Example Problem (Deploying From Stable Branch)

I was following the Subversion examples in chapter 2 when I ran into something that I thought wasn’t very clear.

You have the user set up a repository in file:///home/ezra/svn/{trunk,tags,branches}. Then they check out the project to ~/deployit. All the examples worked fine until I got to page 23 when discussing Capistrano and deploying from a stable branch.

The example to copy does not seem to mesh well with the earlier examples given. The command is as follows:

$ svn copy --message "Create the stable branch" file:///home/ezra/deployit/trunk file:///home/ezra/deployit/branches/stable

I tried this a few times to no avail. Then looking back at the examples, the repository is file:///home/ezra/svn not file:///home/ezra/deployit. Isn’t the latter simply a working copy and therefore the command above fails? I was able to do the example above changing it to the former though:

$ svn copy --message "Create the stable branch" file:///home/ezra/svn/trunk file:///home/ezra/svn/branches/stable

I’m new to Subversion so I apologize if I was not following the examples properly.

Thanks.

2 posts