Index: openacs-4/packages/acs-core-docs/www/cvs-tips.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/cvs-tips.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/cvs-tips.html 4 Feb 2004 16:47:32 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/cvs-tips.html 12 Feb 2004 13:51:40 -0000 1.10 @@ -1,13 +1,13 @@ -Appendix�D.�Using CVS with an OpenACS Site

Appendix�D.�Using CVS with an OpenACS Site

By Joel Aufrecht

+Appendix�D.�Using CVS with an OpenACS Site

Appendix�D.�Using CVS with an OpenACS Site

By Joel Aufrecht

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

Add the Service to CVS - OPTIONAL.�These steps take an existing OpenACS directory and add +

Add the Service to CVS - OPTIONAL.�These steps take an existing OpenACS directory and add it to a CVS repository.

  1. Create and set permissions on a subdirectory in the local cvs repository.

    [root root]# mkdir /cvsroot/service0
    -[root root]# chown service0.web /cvsroot/service0
    +[root root]# chown service0.service0 /cvsroot/service0
     [root root]#
     mkdir /cvsroot/service0
    -chown service0.web /cvsroot/service0
  2. Add the repository location to the user environment.

    [root root]# su - service0
    +chown service0.service0 /cvsroot/service0
  3. Add the repository location to the user environment. On some systems, you may get better results with .bash_profile instead of .bashrc.

    [root root]# su - service0
     [service0 service0]$ emacs .bashrc

    Put this string into /home/service0/.bashrc:

    export CVSROOT=/cvsroot
    [service0 service0]$ exit
     logout
     
    @@ -20,34 +20,43 @@
                 plus this string,
                 i.e.
                 /cvsroot/service0.
    -            "OpenACS" is the vendor tag, and "" is the
    +            "OpenACS" is the vendor tag, and "oacs-5-0-1" is the
                 release tag.  These tags will be useful in upgrading and
                 branching.  -m sets the version comment.

    [root root]# su - service0
    -[service0 service0]$ cd /web/service0
    -[service0 service0]$ cvs import -m "initial install" service0 OpenACS 
    +[service0 service0]$ cd /var/lib/aolserver/service0
    +[service0 service0]$ cvs import -m "initial install" service0 OpenACS oacs-5-0-1
     N service0/license.txt
     N service0/readme.txt
     (many lines omitted)
     N service0/www/SYSTEM/flush-memoized-statement.tcl
     
     No conflicts created by this import
     
    -[service0 service0]$
    +[service0 service0]$ exit
    +[root root]#
     su - service0
    -cd /web/service0
    -cvs import -m "initial install" service0 OpenACS 

    Move the original directory to a temporary location, and check out the cvs repository in its place. If the service starts correctly, come back and remove the temporary copy of the uploaded files.

    [service0 service0]$ cd ..
    -[service0 web]$ mv service0 service0.orig
    -[service0 web]$ cvs checkout service0
    +cd /var/lib/aolserver/service0
    +cvs import -m "initial install" service0 OpenACS oacs-5-0-1
    +exit

    Move the original directory to a temporary location, and check out the cvs repository in its place.

    [root root]# mv /var/lib/aolserver/service0 /var/tmp
    +[root root]# mkdir /var/lib/aolserver/service0
    +[root root]# chown service0.service0 /var/lib/aolserver/service0
    +[root root]# su - service0
    +[service0 service0]$ cd /var/lib/aolserver
    +[service0 aolserver]$ cvs checkout service0
     cvs checkout: Updating service0
     U service0/license.txt
     (many lines omitted)
     U service0/www/SYSTEM/dbtest.tcl
     U service0/www/SYSTEM/flush-memoized-statement.tcl
    -[service0 web]$ exit
    +[service0 aolserver]$ exit
     logout
     
    -[root web]#
    -cd ..
    -mv service0 service0.orig
    +[root root]#
    +
    +mv /var/lib/aolserver/service0 /var/tmp
    +mkdir /var/lib/aolserver/service0
    +chown service0.service0 /var/lib/aolserver/service0
    +su - service0
    +cd /var/lib/aolserver
     cvs checkout service0
    -exit
View comments on this page at openacs.org
+exit
  • If the service starts correctly, come back and remove the temporary copy of the uploaded files.

  • View comments on this page at openacs.org