Ok...I thought I had this worked out, but now I'm running into
path issues on my server.

What I'm trying to accomplish is this:

- I'm using an SVN service to post changes to my web server
- I commit a change to SVN, then SVN sends update to server
- On the SVN server, I have two FTP sites set up to handle commits
- One FTP site gets commits immediately...that's the development site,
  or folder on my server
- The second FTP site gets commits only manually...those go to the
  production site (or folder) when testing and client approval is finished

- To use this setup, I created three variables for application.activeWebroot
based
  on the cgi.server_name in use and used this like this:

        <cfif cgi.server_name contains 'localhost'>

                <cfset application.activeWebroot = 'hillyPetersonHomes' >

        <cfelseif cgi.server_name contains 'hph.whitestonemedia.com'>

                <cfset application.activeWebroot = 'hillyPetersonHomes-dev'>

        <cfelseif cgi.server_name contains 'hillyPetersonHomes.com'>

                <cfset application.activeWebroot = 'hillyPetersonHomes'>

        </cfif>


This works fine for local development when using paths such as:

        url = /#application.activeWebroot#/images/image.jpg

That translates to http://localhost/hillyPetersonHomes/images/image.jpg.

However, on the server, when domain names become involved, it doesn't work.
When, viewing a site in the development folder, using the domain
"hph.whitestonemedia.com", this path:

        url = /#application.activeWebroot#/images/image.jpg

becomes:

        url =
http://hph.whitestonemedia.com/hillyPetersonHomes-dev/images/image.jpg

which doesn't work.

It needs to be http://hph.whitestonemedia.com/images/image.jpg

Same problem with the production paths.


I'm probably way over-complicating this solution.

What's a good way to approach this problem?

Using one port on the IIS server for development and 80 for production?
And send hph.whitestonemedia.com to port "79" or whatever for development
sub-domains and www.hillypetersonhomes.com to port "80" for production?
And specify the ports in the FTP settings on the SVN server and on IIS
on the preview/production server?

Thanks for taking the time to read this and for any feedback!

Rick





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:336357
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to