The Medical University of South Carolina
Discovering...Understanding...Healing...

User

Creative Commons License

Subversion repository is on bfs.

To create a new project:

  • cd to the svn repo, public or private.
  • su to www-data before creation so that the files will have the proper permissions.
  • svnadmin create /path/to/subversion/repo/private/project_name --fs-type=fsfs

To import existing Rails project:

  • http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion if you like. Ignore the rest of this.

  • Create your subversion project as above:
    • # in your_rails_app (created by rails your_rails_app)
    • svn import . repository_url -m "Import" --username user
    • cd ..
    • mv your_rails_app your_rails_app-backup
    • svn checkout svn_url_to_your_repository your_rails_app
    • cd your_rails_app
  • (Instructions from above site):
    • # Remove the log files.
      • svn remove log/*
      • svn commit -m "removing all log files from subversion"
      # Ignore the log files when they are re-created (Note for Capistrano/Switchtower users: the log directory is “shared” so it needs to be ignored itself, not just it’s contents)
      • svn propset svn:ignore "*.log" log/
      • svn update log/
      • svn commit -m "Ignoring all files in /log/ ending in .log"
      # Ignore the tmp directory with all its content (cache, sessions, sockets)
      • svn remove tmp/*
      • svn propset svn:ignore "*" tmp/
      • svn update tmp/
      • svn commit -m "Ignoring all files in /tmp/"

CarcWiki: Documentation/SubversionControl (last edited 2007-05-24 13:27:40 by SatyajitPhanse)

171 Ashley Avenue · Charleston SC 29425 · (843) 792-2300