title: Simplifying Flex deployments in services-config.xml?
body: <p>I am using Flex/Flash to build a UI which front-ends my Rails server application. I am using WebORB as the communication mechanism. My question should apply beyond just WebORB, however. (I think).</p>
  
  <p>Specifically, it has to do with the services-config.xml file. I have a local (laptop) dev environment, a remote dev and a remote production environment. I am sick of editing the URL in the services-config.xml file, rebuilding and deploying every time I want to test in a different environment.</p>
  
  <p>Does anyone have any ideas on how to do this? I thought I could do the following:</p>
  
  <pre><code>   &lt;channel-definition id="supremacy" class="mx.messaging.channels.AMFChannel"&gt;
          &lt;endpoint uri="/weborb" class="flex.messaging.endpoints.AMFEndpoint"/&gt;
          &lt;properties&gt;
              &lt;polling-enabled&gt;true&lt;/polling-enabled&gt;
          &lt;/properties&gt;
      &lt;/channel-definition&gt;
  </code></pre>
  
  <p>By setting the URI="/weborb" and giving it a relative path, I figured it would work. And it does--locally--but it doesn't when I deploy it to my remote dev and prod environments (Heroku). Weird.</p>