Hi, all.
I've started using two different folders on my servers for each site.
The first is for viewing a site online during development and the second
folder is for production.
That is creating path issues with my component path notation.
If a path is on the index.cfm in the root
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 =
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
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
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?
+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
, 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
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
8 matches
Mail list logo