[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More module aliases
From: |
Kenneth Dombrowski |
Subject: |
More module aliases |
Date: |
Tue, 4 May 2004 23:45:51 -0400 |
User-agent: |
Mutt/1.3.28i |
OK, I've been following along for a couple of days, but I'm still stuck on
this. I have a web project which encompasses a few portals; there are
essentially 4 sites, each of which uses some common code, & some private code.
I've been keeping the 4 sites separately in CVS for a few months now, but
updates require too much time diffing the common code between the 4, so I
thought I could break out the shared bits according to functionality & include
them where needed as &modules
None of the 4 pieces are installed in the server's webroot; in fact all four
must be exactly /one_dir down. The name of that directory is not important.
This was designed to be able to install them all right next to each other, all
4 'live' sites + usually 4 more 'dev' sites.
my current CVSROOT/modules file looks something like this:
# www_site is a literal/physical module name, so not aliased
devsite -d dev_site www_site
# www_pro is a literal/physical module name, so not aliased
devpro -d dev_pro www_pro
# www_admin is a literal/physical module name, so not aliased
devadmin -d dev_admin www_admin
# developer data to check out with dev_* sites
devdev -d dev_site/_developer _developer
devpro -d dev_pro/_developer _developer
devadmin -d dev_admin/_developer _developer
# shared functions
funcs -d www_site/functions functions
devfuncs -d dev_site/functions functions
profuncs -d www_pro/functions functions
devprofuncs -d dev_pro/functions functions
# shared images...
# shared shopping cart...
# shared templates...
# and then at the end I'm trying to string them together..
#
www_site -a www_site &funcs &images &cart &tmpl
dev_site -a &devsite &devdev &devfuncs &devimages &devcart &devtmpl
it doesn't work. 'cvs checkout www_site' checks out only the
physical/literal 'www_site' module. I've tried aliasing it so it's not
using the same name, & renaming & re-importing the files:
# replacing the 1st comment of my ex. with
livesite -d www_site www_root
# & the www_site line with
www_site -a &livesite &funcs &images &cart &tmpl
# with & without the "-a"
all I can get is this:
address@hidden www]$ cvs checkout -d testsite www_site
cvs server: cannot find module `www_site' - ignored
cvs [checkout aborted]: cannot expand modules
address@hidden www]$ cvs -nt checkout -d testsite www_site
-> main loop with CVSROOT=:pserver:address@hidden:/home2/cvs/uy_mod
-> Connecting to localhost(127.0.0.1):2401
S-> do_module (www_site, Updating, , )
cvs server: cannot find module `www_site' - ignored
cvs [checkout aborted]: cannot expand modules
-> Lock_Cleanup()
address@hidden www]$ cvs -nt checkout -d testpro www_pro
-> main loop with CVSROOT=:pserver:address@hidden:/home2/cvs/uy_mod
-> Connecting to localhost(127.0.0.1):2401
S-> do_module (www_pro, Updating, , )
cvs server: cannot find module `www_pro' - ignored
cvs [checkout aborted]: cannot expand modules
-> Lock_Cleanup()
address@hidden www]$ cvs checkout -d testpro www_pro
cvs server: cannot find module `www_pro' - ignored
cvs [checkout aborted]: cannot expand modules
address@hidden www]$
Thanks for reading!
Kenneth
- More module aliases,
Kenneth Dombrowski <=