Thanks for the tip, Brad...

I decided to go with use of the cgi.server_name variable.
Fast and easy.  I just wanted to make sure some "super-slick"
way of doing this hadn't come out lately.

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.

Two VPS's would be nice, but one's enough to pay for. :oP

Rick


-----Original Message-----
From: b...@bradwood.com [mailto:b...@bradwood.com] 
Sent: Tuesday, June 08, 2010 4:46 PM
To: cf-talk
Subject: 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 application.


A better solution would be to actually have a dedicated box for your dev
server so you can do testing there without fear of ruining your
production server's stability. There are also settings I enable on a
production server like Trusted Cache that you wouldn't be able to use
for a dev server.

If you can't spare a separate box, AT LEAST create different sites for
dev and production on your server with their own completely separate web
root.  www.mysite.com and devwww.mysite.com.
If you are running CF Enterprise in multi-server mode you can actually
have separate instances for dev and production which is the next best
thing to a different physical server.  Ok, actually a VM is the next
best thing to that, but I digress...


~Brad




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334377
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to