Basically, right now my setup looks like this: ------------------------------------------------------------------------
<!-- SECURE --> <!-- <channel-definition id="rubyamf" class="mx.messaging.channels.SecureAMFChannel"> --> <!-- NOT SECURE --> <channel-definition id="rubyamf" class="mx.messaging.channels.AMFChannel"> <!-- WWW --> <!-- <endpoint uri="https://www.gladhandle.com/rubyamf/gateway" class="flex.messaging.endpoints.SecureAMFEndpoint"/> --> <!-- <endpoint uri="http://www.gladhandle.com:3000/rubyamf/gateway" class="flex.messaging.endpoints.AMFEndpoint"/> --> <!-- LOCAL --> <endpoint uri="http://localhost:3000/rubyamf/gateway" class="flex.messaging.endpoints.AMFEndpoint"/> </channel-definition> ------------------------------------------------------------------------ Obviously, that is not the best way. I have to recompile this with the correct channel-definition/endpoint uncommented depending on if I am running it locally (development), off our dev server (testing), or on www (live). What would be a better way to approach this?