[mapserver-users] variable substitution

Bob Basques Bob.Basques at ci.stpaul.mn.us
Thu May 17 07:58:43 PDT 2012


Oh man, easy one . . . 

Use an INCLUDE for the path in each site with their respective paths in the INCLUDE file for each site.  You work the same in both work spaces, but the path differences are handled in the INCLUDEs. 

You still need to manage the pathing differences separately however. 

bobb 



>>> Puneet Kishor <punk.kish at gmail.com> wrote:


So, http://mapserver.org/mapfile/variable_sub.html details how I can do variable substitution using either cookies or CGI params. My problem is slightly different, and I am hoping one of you wizards must have solved it already so you could help.

I have mapfiles on my development machine with one set of path names. These mapfiles, along with the rest of the application, are pushed to a git repo, and then pulled down to the production server where, unfortunately, the path names are different. Short of maintaining two sets of mapfiles, how can I do a variable substitution in the path name so everything works.



--
Puneet Kishor_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120517/dce93bef/attachment.htm>


More information about the MapServer-users mailing list