简体   繁体   English

Coldfusion Builder项目路径

[英]Coldfusion Builder Project Path

I just started using CF Builder with the included CF server 11 I want to use it to continue a project I had started on CF 10 and Dreamweaver. 我刚开始将CF Builder与附带的CF服务器11一起使用,我想使用它来继续我在CF 10和Dreamweaver上启动的项目。

CF builder insists on creating projects as subdirectories of the server root wwwroot/project. CF Builder坚持将项目创建为服务器根wwwroot / project的子目录。

The project I am trying to import has a lot of includes and links that refer to the home directory: Example: <cfinclude template="/includes/header.cfm"> 我尝试导入的项目有很多包含和指向主目录的链接:示例: <cfinclude template="/includes/header.cfm">

That causes fails as the correct path should now be: <cfinclude template="/project/includes/header.cfm"> 导致失败的原因是正确的路径现在应该为: <cfinclude template="/project/includes/header.cfm">

But I can't modify all the links in the project that way as when it's deployed it needs to keep the links as they are now. 但是我无法以这种方式修改项目中的所有链接,因为在部署项目时,它需要保持链接不变。

How can I configure CF builder to either recognize wwwroot/project/ as the "/" home for this particular project, or just work off wwwroot? 如何配置CF构建器以将wwwroot / project /识别为该特定项目的“ /”目录,或者仅在wwwroot下工作?

I figured it out. 我想到了。 The best way to do this is to set up virtual hosts - each a directory. 最好的方法是设置虚拟主机-每个虚拟主机都有一个目录。 That way it should match the structure that CFB expects. 这样,它应该符合CFB期望的结构。 where there is a wwwroot - but each project is a subdirectory which can be it's own "home". 这里有一个wwwroot-但每个项目都是一个子目录,可以是它自己的“主页”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM