Often, there is a subversion repository already set up and running on another machine. In this situation, I generally:
- Check out the repository at the top level into a temporary directory through Tortoise, add a new directory ([appname]) for the new project, and check it in.
- Generate the new rails app (rails [appname]).
- Check out [appname] from the repository into the local directory [appname] which contains the Rails project.
- Add and check in all files through Tortoise.
- Run the following commands from the command line to remove logs and tmp from the repository:
svn remove log/*
svn commit -m "removing all log files from subversion"
svn propset svn:ignore "*.log" log/
svn update log/
svn commit -m "Ignoring all files in /log/ ending in .log"
svn remove tmp/*
svn propset svn:ignore "*" tmp/
svn update tmp/
svn commit -m "Ignoring all files in /tmp/"
There's more Rails/Subversion info to be found on the Rails wiki.
159 comments:
Post a Comment