Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a question and need a suggestion. We have to manage .htaccess file on three different instances - dev, qa and prod. Currently we have tortoise configured for scm. The issue we are facing is that .htaccess for dev & qa is different from the prod. At present, we have to manually merge differences from dev .htaccess to prod .htaccess. Is there any alternative way of managing this file without this manual process since it is error prone. Any suggestions in this regard will be highly appreciated

share|improve this question
add comment

1 Answer

Alternatives:

  • Use two branches (DEV+QA and PRO), in which only single file will differ and require merge
  • If you use correct tools in order to do correct things, you deploy from repo to different targets not by hand, but using some "release manager", which can get additional task of build&deploy - convert htaccess-template into htaccess for this target
share|improve this answer
    
Thanks for the info..can u pls give me an example of any such release manager.. –  f-z-N Dec 5 '12 at 10:21
    
@user178087 - Jenkins, Maven –  Lazy Badger Dec 5 '12 at 11:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.