cfroot? (was: Where do CFC's go?
On Wednesday, Oct 30, 2002, at 09:01 US/Pacific, Tyler Silcox wrote: > Is there a way to find the root of the ColdFusion server? I don't know, off the top of my head. It seems like there ought to be... > We use Fusebox, so we designate all non-Circuit folders > as a resource folder and prefix with a "_". Usually we have _images, > _customtags, _pdfs, etc. It'd be great if I could somehow reference > the CF > root with a variable, because I could then I could write a UDF to call > my > cfcs as "#cfroot#.mydomin._cfcs.somecfc" but I can't quite figure out > how to > do that. It really would help for portability and reuse, any > suggestions Without knowing a bit more about how your hosting setup is organized, it's difficult to say. If #cfroot#/mydomain is already set up as a custom tag path by your hosting provider, you should be able to reference your CFC like this: If #cfroot#/mydomain is your webroot already then the same code ought to work (since CFCs are searched for locally, then webroot, then custom tag paths I believe). "Conform! Consume! Obey!" -- Mr Snaffleburger : http://www.matazone.co.uk/theotherside.html ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re: Where do CFC's go?
On Wednesday, Oct 30, 2002, at 07:24 US/Pacific, Troy Simpson wrote: > Thanks for describing your layout. It has been very helpful in > providing me with ideas. Good. > How do (would) you outline the directory structure for multiple > websites that are hosted on one system. Unfortunately, I can't answer that one. It's a problem that my team will eventually have to tackle since we currently have a variety of physically separate systems with different domains and we want to coalesce them all into one cluster of servers but right now, I don't know how we're going to do that. I suspect we'll end up doing something fancy with Apache and/or mapping to different instances of CFMX for J2EE running on JRun 4 servers. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true - I no longer know how to use my telephone." -- Bjarne Stroustrup ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Re: Where do CFC's go?
Sorry, but I'm not sure if I know the answer to that question. But I think I'll take a stab at an answer. Could you have your hosting service create a mapping for your coldfusion/web root? For example, a mapping in CF Admin might be Logical Path: /yourdomainname Directory Path: /the/physical/Path/to/your/coldfusion-web-root Logical Path: /www-yahoo-com Directory Path: /websites/www-yahoo-com/wwwroot I don't know how ColdFusion might react with period in the Logical Path, so I used dashes instead. Do you think this might work for you? Let me know. Troy Tyler Silcox wrote: > Here's a side question for you, that I've tried posting before ;-): > > Is there a way to find the root of the ColdFusion server? > > The majority of our sites are hosted on someone else's box, so we don't > always have access to the CFAdministrator. We can usually request some > mappings, but it always made more sense for me to add a resources folder to > our website root. We use Fusebox, so we designate all non-Circuit folders > as a resource folder and prefix with a "_". Usually we have _images, > _customtags, _pdfs, etc. It'd be great if I could somehow reference the CF > root with a variable, because I could then I could write a UDF to call my > cfcs as "#cfroot#.mydomin._cfcs.somecfc" but I can't quite figure out how to > do that. It really would help for portability and reuse, any suggestions > > Tyler Silcox > email | [EMAIL PROTECTED] > > - Original Message - > From: "Troy Simpson" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Wednesday, October 30, 2002 10:24 AM > Subject: Re: Where do CFC's go? > > Thanks for describing your layout. It has been very helpful in providing me > with ideas. > How do (would) you outline the directory structure for multiple websites > that are hosted on one system. > > For example: > admin.domain.com > app1.domain.com > app2.domain.com > app3.domain.com > . > > It appears that ColdFusion was design with the aspect of supporting only one > website instead of many. > This is evident in the ColdFusion Administrator, Server Mappings page. > For example, I'm only allowed to provide one root Mapping for "/" and the > mapping must be unique. > > I do understand why though. > Anyone have any ideas how to work around this? > > Thanks, > Troy > > Sean A Corfield wrote: > > > On Friday, Oct 25, 2002, at 16:30 US/Pacific, Troy Simpson wrote: > > > I'm using Dreamweaver MX to create some CFC's and trying to figure out > > > how to layout the file system on the ColdFusionMX App server. > > > (FYI: I'm new at this CFC stuff and Dreamweaver too.) > > > Where am I suppose to copy the CFC's too? > > > I've read various things. > > > Some put them under the wwwroot. > > > Others put them outside the wwwroot and create a mapping. > > > > If you want to invoke them as Web Services or via Flash Remoting, you > > need to make your CFCs web-accessible. Otherwise, you can put them > > wherever you want. > > > > Here's what my team does (partial credit to Mike Nimer for the seed of > > this): > > > > {cfmx}/ > > extensions/ > > components/ > > {appname}/ > > {file}.cfc > > customtags/ > > {appname}/ > > {file}.cfm > > includes/ > > {appname}/ > > {file}.cfm > > wwwroot/ > > {appname}/ > > {file}.cfm > > > > Where {cfmx} is the install directory, {appname} is an application name > > (e.g., store, membership) and {file} is any filename. > > > > Then we add these to the custom tag / components path in the CF Admin: > > {cfmx}/extensions/components/ > > {cfmx}/extensions/customtags/ > > > > And we add a mapping for the includes: > > /cfinclude {cfmx}/extensions/includes/ > > > > Typically, each application has an Application.cfm under > > wwwroot/{appname}/ which also cfinclude's /Application.cfm which > > contains our 'global' stuff. > > > > This is all part of our coding guidelines - but I can&
Re: Where do CFC's go?
Here's a side question for you, that I've tried posting before ;-): Is there a way to find the root of the ColdFusion server? The majority of our sites are hosted on someone else's box, so we don't always have access to the CFAdministrator. We can usually request some mappings, but it always made more sense for me to add a resources folder to our website root. We use Fusebox, so we designate all non-Circuit folders as a resource folder and prefix with a "_". Usually we have _images, _customtags, _pdfs, etc. It'd be great if I could somehow reference the CF root with a variable, because I could then I could write a UDF to call my cfcs as "#cfroot#.mydomin._cfcs.somecfc" but I can't quite figure out how to do that. It really would help for portability and reuse, any suggestions Tyler Silcox email | [EMAIL PROTECTED] - Original Message - From: "Troy Simpson" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 10:24 AM Subject: Re: Where do CFC's go? Thanks for describing your layout. It has been very helpful in providing me with ideas. How do (would) you outline the directory structure for multiple websites that are hosted on one system. For example: admin.domain.com app1.domain.com app2.domain.com app3.domain.com . It appears that ColdFusion was design with the aspect of supporting only one website instead of many. This is evident in the ColdFusion Administrator, Server Mappings page. For example, I'm only allowed to provide one root Mapping for "/" and the mapping must be unique. I do understand why though. Anyone have any ideas how to work around this? Thanks, Troy Sean A Corfield wrote: > On Friday, Oct 25, 2002, at 16:30 US/Pacific, Troy Simpson wrote: > > I'm using Dreamweaver MX to create some CFC's and trying to figure out > > how to layout the file system on the ColdFusionMX App server. > > (FYI: I'm new at this CFC stuff and Dreamweaver too.) > > Where am I suppose to copy the CFC's too? > > I've read various things. > > Some put them under the wwwroot. > > Others put them outside the wwwroot and create a mapping. > > If you want to invoke them as Web Services or via Flash Remoting, you > need to make your CFCs web-accessible. Otherwise, you can put them > wherever you want. > > Here's what my team does (partial credit to Mike Nimer for the seed of > this): > > {cfmx}/ > extensions/ > components/ > {appname}/ > {file}.cfc > customtags/ > {appname}/ > {file}.cfm > includes/ > {appname}/ > {file}.cfm > wwwroot/ > {appname}/ > {file}.cfm > > Where {cfmx} is the install directory, {appname} is an application name > (e.g., store, membership) and {file} is any filename. > > Then we add these to the custom tag / components path in the CF Admin: > {cfmx}/extensions/components/ > {cfmx}/extensions/customtags/ > > And we add a mapping for the includes: > /cfinclude {cfmx}/extensions/includes/ > > Typically, each application has an Application.cfm under > wwwroot/{appname}/ which also cfinclude's /Application.cfm which > contains our 'global' stuff. > > This is all part of our coding guidelines - but I can't remember > whether I left this in the public domain version: > http://www.corfield.org/coldfusion/codingStandards.htm > > I can't answer your RDS question I'm afraid! > > Sean A Corfield -- Director, Architecture > Web Technology Group -- Macromedia, Inc. > tel: (415) 252-2287 -- cell: (415) 717-8473 > fax: (415) 865-3113 -- http://www.macromedia.com > An Architect's View -- http://www.corfield.org/blog/ > > Macromedia DevCon 2002, October 27-30, Orlando, Florida > Architecting a New Internet Experience > Register today at http://www.macromedia.com/go/devcon2002 > > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Re: Where do CFC's go?
Thanks for describing your layout. It has been very helpful in providing me with ideas. How do (would) you outline the directory structure for multiple websites that are hosted on one system. For example: admin.domain.com app1.domain.com app2.domain.com app3.domain.com .. It appears that ColdFusion was design with the aspect of supporting only one website instead of many. This is evident in the ColdFusion Administrator, Server Mappings page. For example, I'm only allowed to provide one root Mapping for "/" and the mapping must be unique. I do understand why though. Anyone have any ideas how to work around this? Thanks, Troy Sean A Corfield wrote: > On Friday, Oct 25, 2002, at 16:30 US/Pacific, Troy Simpson wrote: > > I'm using Dreamweaver MX to create some CFC's and trying to figure out > > how to layout the file system on the ColdFusionMX App server. > > (FYI: I'm new at this CFC stuff and Dreamweaver too.) > > Where am I suppose to copy the CFC's too? > > I've read various things. > > Some put them under the wwwroot. > > Others put them outside the wwwroot and create a mapping. > > If you want to invoke them as Web Services or via Flash Remoting, you > need to make your CFCs web-accessible. Otherwise, you can put them > wherever you want. > > Here's what my team does (partial credit to Mike Nimer for the seed of > this): > > {cfmx}/ > extensions/ > components/ > {appname}/ > {file}.cfc > customtags/ > {appname}/ > {file}.cfm > includes/ > {appname}/ > {file}.cfm > wwwroot/ > {appname}/ > {file}.cfm > > Where {cfmx} is the install directory, {appname} is an application name > (e.g., store, membership) and {file} is any filename. > > Then we add these to the custom tag / components path in the CF Admin: > {cfmx}/extensions/components/ > {cfmx}/extensions/customtags/ > > And we add a mapping for the includes: > /cfinclude {cfmx}/extensions/includes/ > > Typically, each application has an Application.cfm under > wwwroot/{appname}/ which also cfinclude's /Application.cfm which > contains our 'global' stuff. > > This is all part of our coding guidelines - but I can't remember > whether I left this in the public domain version: > http://www.corfield.org/coldfusion/codingStandards.htm > > I can't answer your RDS question I'm afraid! > > Sean A Corfield -- Director, Architecture > Web Technology Group -- Macromedia, Inc. > tel: (415) 252-2287 -- cell: (415) 717-8473 > fax: (415) 865-3113 -- http://www.macromedia.com > An Architect's View -- http://www.corfield.org/blog/ > > Macromedia DevCon 2002, October 27-30, Orlando, Florida > Architecting a New Internet Experience > Register today at http://www.macromedia.com/go/devcon2002 > > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Re: Where do CFC's go?
On Friday, Oct 25, 2002, at 17:24 US/Pacific, Troy Simpson wrote: > Is {cfmx} the default install path. Yes. > So in my case, for Sun Solaris8 it would be /opt/coldfusionmx ? Yup. On my laptop it's /home/coldfusionmx, on our Solaris boxes it's /data/www/appserver/cfusionmx (or something like that). > Sean A Corfield wrote: > >> On Friday, Oct 25, 2002, at 16:30 US/Pacific, Troy Simpson wrote: >>> I'm using Dreamweaver MX to create some CFC's and trying to figure >>> out >>> how to layout the file system on the ColdFusionMX App server. >>> (FYI: I'm new at this CFC stuff and Dreamweaver too.) >>> Where am I suppose to copy the CFC's too? >>> I've read various things. >>> Some put them under the wwwroot. >>> Others put them outside the wwwroot and create a mapping. >> >> If you want to invoke them as Web Services or via Flash Remoting, you >> need to make your CFCs web-accessible. Otherwise, you can put them >> wherever you want. >> >> Here's what my team does (partial credit to Mike Nimer for the seed of >> this): >> >> {cfmx}/ >> extensions/ >> components/ >> {appname}/ >> {file}.cfc >> customtags/ >> {appname}/ >> {file}.cfm >> includes/ >> {appname}/ >> {file}.cfm >> wwwroot/ >> {appname}/ >> {file}.cfm >> >> Where {cfmx} is the install directory, {appname} is an application >> name >> (e.g., store, membership) and {file} is any filename. >> >> Then we add these to the custom tag / components path in the CF Admin: >> {cfmx}/extensions/components/ >> {cfmx}/extensions/customtags/ >> >> And we add a mapping for the includes: >> /cfinclude {cfmx}/extensions/includes/ >> >> Typically, each application has an Application.cfm under >> wwwroot/{appname}/ which also cfinclude's /Application.cfm which >> contains our 'global' stuff. >> >> This is all part of our coding guidelines - but I can't remember >> whether I left this in the public domain version: >> http://www.corfield.org/coldfusion/codingStandards.htm >> >> I can't answer your RDS question I'm afraid! ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: Where do CFC's go?
Is {cfmx} the default install path. So in my case, for Sun Solaris8 it would be /opt/coldfusionmx ? Thanks, Troy Sean A Corfield wrote: > On Friday, Oct 25, 2002, at 16:30 US/Pacific, Troy Simpson wrote: > > I'm using Dreamweaver MX to create some CFC's and trying to figure out > > how to layout the file system on the ColdFusionMX App server. > > (FYI: I'm new at this CFC stuff and Dreamweaver too.) > > Where am I suppose to copy the CFC's too? > > I've read various things. > > Some put them under the wwwroot. > > Others put them outside the wwwroot and create a mapping. > > If you want to invoke them as Web Services or via Flash Remoting, you > need to make your CFCs web-accessible. Otherwise, you can put them > wherever you want. > > Here's what my team does (partial credit to Mike Nimer for the seed of > this): > > {cfmx}/ > extensions/ > components/ > {appname}/ > {file}.cfc > customtags/ > {appname}/ > {file}.cfm > includes/ > {appname}/ > {file}.cfm > wwwroot/ > {appname}/ > {file}.cfm > > Where {cfmx} is the install directory, {appname} is an application name > (e.g., store, membership) and {file} is any filename. > > Then we add these to the custom tag / components path in the CF Admin: > {cfmx}/extensions/components/ > {cfmx}/extensions/customtags/ > > And we add a mapping for the includes: > /cfinclude {cfmx}/extensions/includes/ > > Typically, each application has an Application.cfm under > wwwroot/{appname}/ which also cfinclude's /Application.cfm which > contains our 'global' stuff. > > This is all part of our coding guidelines - but I can't remember > whether I left this in the public domain version: > http://www.corfield.org/coldfusion/codingStandards.htm > > I can't answer your RDS question I'm afraid! > > Sean A Corfield -- Director, Architecture > Web Technology Group -- Macromedia, Inc. > tel: (415) 252-2287 -- cell: (415) 717-8473 > fax: (415) 865-3113 -- http://www.macromedia.com > An Architect's View -- http://www.corfield.org/blog/ > > Macromedia DevCon 2002, October 27-30, Orlando, Florida > Architecting a New Internet Experience > Register today at http://www.macromedia.com/go/devcon2002 > > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
Re: Where do CFC's go?
On Friday, Oct 25, 2002, at 16:30 US/Pacific, Troy Simpson wrote: > I'm using Dreamweaver MX to create some CFC's and trying to figure out > how to layout the file system on the ColdFusionMX App server. > (FYI: I'm new at this CFC stuff and Dreamweaver too.) > Where am I suppose to copy the CFC's too? > I've read various things. > Some put them under the wwwroot. > Others put them outside the wwwroot and create a mapping. If you want to invoke them as Web Services or via Flash Remoting, you need to make your CFCs web-accessible. Otherwise, you can put them wherever you want. Here's what my team does (partial credit to Mike Nimer for the seed of this): {cfmx}/ extensions/ components/ {appname}/ {file}.cfc customtags/ {appname}/ {file}.cfm includes/ {appname}/ {file}.cfm wwwroot/ {appname}/ {file}.cfm Where {cfmx} is the install directory, {appname} is an application name (e.g., store, membership) and {file} is any filename. Then we add these to the custom tag / components path in the CF Admin: {cfmx}/extensions/components/ {cfmx}/extensions/customtags/ And we add a mapping for the includes: /cfinclude {cfmx}/extensions/includes/ Typically, each application has an Application.cfm under wwwroot/{appname}/ which also cfinclude's /Application.cfm which contains our 'global' stuff. This is all part of our coding guidelines - but I can't remember whether I left this in the public domain version: http://www.corfield.org/coldfusion/codingStandards.htm I can't answer your RDS question I'm afraid! Sean A Corfield -- Director, Architecture Web Technology Group -- Macromedia, Inc. tel: (415) 252-2287 -- cell: (415) 717-8473 fax: (415) 865-3113 -- http://www.macromedia.com An Architect's View -- http://www.corfield.org/blog/ Macromedia DevCon 2002, October 27-30, Orlando, Florida Architecting a New Internet Experience Register today at http://www.macromedia.com/go/devcon2002 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
Re: Where do CFC's go?
- Original Message - From: "Troy Simpson" <[EMAIL PROTECTED]> > I'm using Dreamweaver MX to create some CFC's and trying to figure out > how to layout the file system on the ColdFusionMX App server. > (FYI: I'm new at this CFC stuff and Dreamweaver too.) > Where am I suppose to copy the CFC's too? --- I've not yet used CFC's or Dreamweaver, so I'm not really qualified... But I did notice some interesting ideas for structuring storage of app files in Benoit Hediard's CFMX framework material: http://www.benorama.com/coldfusion/index.htm Specifically, here: http://www.benorama.com/coldfusion/patterns/part8.htm It does depend on his 'design pattern', but maybe of use to you. Gyrus [EMAIL PROTECTED] work: http://www.tengai.co.uk play: http://www.norlonto.net PGP key available ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com
Where do CFC's go?
I'm using Dreamweaver MX to create some CFC's and trying to figure out how to layout the file system on the ColdFusionMX App server. (FYI: I'm new at this CFC stuff and Dreamweaver too.) Where am I suppose to copy the CFC's too? I've read various things. Some put them under the wwwroot. Others put them outside the wwwroot and create a mapping. I've done it like this: /websites/www.domain.com/CustomTags/com/domain/ and this: /websites/www.domain.com/wwwroot/com/domain/ and application CFC in various directories under wwwroot. Is there a preferred method? It would seem that by putting the CFC under wwwroot, this could make the CF Server search the whole wwwroot directory for CFC. This would seem to be inefficient for the CF Server to have to go though all those *.html, *.gif, *.etc files to pick out the CFC, right? I'm also accessing the files via RDS in DWMX. When I try to edit the CFC via the Component Tab in DWMX, I get a dialog box that says: "This panel only facilitates editing CFCs if the local path to this site's files is the same as the path defined for the testing server for this site. Furthermore, the access to the testing server must be local/network. You can examine and change these path by using the Define Sites item in the Site Menu. The current settings are: Testing Server access type: source_control" I guess this means that I can not develop CFC remotely via RDS, right? Auggg! Can't I get anything right today? ;-) Thanks, Troy -- - Troy Simpson Applications Analyst/Programmer, MCSE, OCPDBA North Carolina State University Libraries Campus Box 7111 | Raleigh | North Carolina ph.919.515.3855 | fax.919.513.3330 E-mail: [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm