title: deploying environment specific .htaccess files in Ruby on Rails
body: <p>I have a .htaccess file with a line that specifies the environment for the application I am running (staging, production etc..)</p>
  
  <pre><code>RackEnv staging
  </code></pre>
  
  <p>Whats the best way to handle this for environment specific deployments with capistrano and capistrano-ext?</p>
  
  <p>somehow write to it dynamically in a capistrano task?
  symbolically link to an existing, shared .htaccess that is specific for each deployment, much in the same way as you do for database.yml?</p>
  
  <p>are there any other options? thanks</p>