Re: How do I solve this path issue for components?

2010-06-08 Thread Andrew Clarke
There are a lot of different ways to solve this problem, but here are a couple. 1. Use a variable to denote your CFC root. For instance, you could set request.pathRoot or something. So in development you'd have request.pathRoot = mySite-dev; and in production it would be request.pathRoot =

Re: How do I solve this path issue for components?

2010-06-08 Thread Sean Corfield
Why not use per-application mappings? In Application.cfc, you can set this.mappings[ '/mysite' ] to either the production or dev CFC root as needed... On Tue, Jun 8, 2010 at 1:03 PM, Rick Faircloth r...@whitestonemedia.com wrote: Hi, all. I've started using two different folders on my

RE: How do I solve this path issue for components?

2010-06-08 Thread brad
to a different physical server. Ok, actually a VM is the next best thing to that, but I digress... ~Brad Original Message Subject: Re: How do I solve this path issue for components? From: Sean Corfield seancorfi...@gmail.com Date: Tue, June 08, 2010 3:34 pm To: cf-talk cf-talk

RE: How do I solve this path issue for components?

2010-06-08 Thread Rick Faircloth
Thanks, Andrew... I'll have a go at some of that! Rick -Original Message- From: Andrew Clarke [mailto:s...@clarke.ca] Sent: Tuesday, June 08, 2010 4:16 PM To: cf-talk Subject: Re: How do I solve this path issue for components? There are a lot of different ways to solve this problem

RE: How do I solve this path issue for components?

2010-06-08 Thread Rick Faircloth
: RE: How do I solve this path issue for components? +1 for per-application mappings. You can even get fancy and set it it based on cgi.server_name or path_info so you don't have to change the code between dev and production. Note, for this to work, dev and production need to be in their OWN

RE: How do I solve this path issue for components?

2010-06-08 Thread Rick Faircloth
, 2010 4:34 PM To: cf-talk Subject: Re: How do I solve this path issue for components? Why not use per-application mappings? In Application.cfc, you can set this.mappings[ '/mysite' ] to either the production or dev CFC root as needed

Re: How do I solve this path issue for components?

2010-06-08 Thread Michael Grant
And, yes, the development and production sites are completely separate with their own webroot. So, unless I crash the server with something (which is not out of the realm of possibility) I should be ok. 0_0 ~| Order the