Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Publishing to a folder 'above' the root

CD calculates relative addresses relative to the 'root' folder.  Some files should be stored outside of the root folder for security reasons (eg db connection string files).  It would be easy enough to rig my folder structure to allow for this, but then the relative addressing done within CD wouldn't work, since it uses the top of its folder tree as the root directory.

I wonder if others have pondered this issue, and how they work with it?

joel goldstick
Monday, March 08, 2004

One solution I've implemented: rewrite the URL strings where necessary using BKReplaceEm or similar.

Unfortunately this means you can't use CityDesk's built-in FTP. If you have the right server access, you can set up rsync and use that to publish files. (Bonus: the rsync solution lets you use SSH, so that passwords etc aren't transmitted in the clear.)

David Walker
Tuesday, March 09, 2004

Write the connect string in a file outside of the file structure and put it there manually. Then put a file that's publically available that INCLUDES the file outside of the directory structure.
Wednesday, March 10, 2004

Thanks Mark.  Nice idea!

joel goldstick
Wednesday, March 10, 2004

*  Recent Topics

*  Fog Creek Home