Sorry if this is a dumb question.
I'm trying to run different code when I test my website
locally versus run it on the production server. Specifically, the
production server puts full URLs into the web pages
(
www.fubar.com/page1.cfm) versus my testing server which I like to
run as a relative URL (../page1.cfm).
I do the full URLs on the production server to have complete
control over the secure/nonsecure elements, but I don't have a
secure cert on localhost so I need all the elements to be non-SSL.
Right now I just have a boolean flag in application.cfc I
manually change so the code knows where it is being run, but
sometimes I forget to change it when I sync. Is there a function
that I can use to set the flag for me? I found IsLocalHost() but I
would need to pass it an IP.
Thank you for any help you might be able to offer.