I’m adding this post ignoring the fact that there’s been almost a two month gap since my last post. Let’s say that quite a bit has been going on. With that being said there’s always some mundane task that I need to accomplish, but can’t recall how to do. Today this task was getting my Rails project into my Subversion repository from the command line. I recently switched from Radrails to Textmate on my Mac and am working from the command line until I can get Textmate SVN working. Here’s the almighty command to get your Rails app into a remote repository. This assumes you’re working from the root of your Rails app:
svn import . http://svn.domain.com/svn/myapp -m “Import” –username dennis
I’m going to keep this handy as I spent 30 minutes trying to figure out how to do this. Thanks again Google.
You can also use my bash/ruby script to do that easily. Find out more here:
http://webonrails.com/2007/01/10/bash-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/
http://webonrails.com/2007/02/08/ruby-script-for-creating-new-rails-project-and-initial-svn-import-with-ignoringremoving-logother-files/