title: How to set different baseUrl path in jQuery ajax requests in development and production mode?
body: <p>My baseUrl path for jQuery ajax requests is different in development and production mode. How can I set it in some kind of config.ini file to switch it easily. Rightnow I'm using a baseurl.js file containing just baseurl path. In production mode, I change this variable via shell script. </p>
  
  <p>What should be better approach?</p>
  
  <p><strong>edit</strong></p>
  
  <p>To make things little clearer,</p>
  
  <pre><code> $.ajax({
     type: "GET",
     url: myurl,
     dataType: "script"
   });
  </code></pre>
  
  <p>Here 'myurl' var is different for production and development. </p>
  
  <p>PS: My question is not about version control or packing files into one.</p>