|
From: | Georgi Kostov |
Subject: | Ideas for handling hardcoded URLs on a CVS managed website? |
Date: | Sat, 21 Apr 2001 00:16:59 +0300 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.8.1) Gecko/20010323 |
There are several developers here and we want to give each one a "sandbox" (devel1.site.com, devel2.site.com etc) so we can take full advantage of CVS. There is also a site called prod.site.com to which we'll checkout a stable version of our work. The problem is that some of the static html files contain hardcoded urls (images, links, etc) peculiar to each of the development sandboxes, and always different from the correct urls for the production site. Commiting them into the repository and later checking them out will have the undesirable effect of producing wrong links on the prod. site.
Can you give me some ideas how to manage with this problem? I indended to write a script that will replace each hardcoded link with a keyword (using a dictionary) before commiting the file to the repository but I haven't thought of how to deal with updates/checkouts.
P.S. Just to be on the safe side: Most of our content is generated by cgi scripts and it doesn't have this hardcoded links problem, but there are static pages and configuration files that do.
Georgi Kostov SunFish Ltd.
[Prev in Thread] | Current Thread | [Next in Thread] |