Technical
Importing New Rails App Into CVS
- Create application
rails appname
- From newly created structure delete folders that are not needed to be in the repository
/tmp> cd appname
/tmp> rm -rf tmp/ log/ db/
- 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
- 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
- If everything worked your’re safe to delete original source code from your station.
- Edit .cvsignore file to ignore tmp log and db directory
- Checkout copy on the server
cd /usr/local/RailsProjects/
cvs -d <url> -d appname
Created on June 10, 2007 20:43:46
by
Gregory Bluvshteyn
(24.186.106.132)
(990 characters / 0.0 pages)