Technical
Importing New Rails App Into CVS

  1. Create application
    
    rails appname
    
  2. From newly created structure delete folders that are not needed to be in the repository
    
    /tmp> cd appname
    /tmp> rm -rf  tmp/ log/ db/
    
  3. Import RailsApp structure to the cvs repository, where app_name is the name of your application.
    
    cvs import -m "Import of Rails App" rails_apps/<app_name> <app_name>_DIST <app_name>_0_04
    
  4. Checkout code from repository to a different location and check if everyting works
    
    cd /tmp
    cvs checkout app_name .
    cd app_name
    mkdir log tmp tmp/cache tmp/sessions tmp/sockets
    ruby script/server 
    
  5. If everything worked your’re safe to delete original source code from your station.
  6. Edit .cvsignore file to ignore tmp log and db directory
  7. Checkout copy on the server
    
    cd /usr/local/RailsProjects/
    cvs -d <url> -d appname