Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to utilize single codebase for multiple web sites

Tags:

What is the best method for utilizing a single code base for multiple websites?

We have validation and session management libraries that we use on multiple websites. Is there a best practice for keeping a single copy rather than having to maintain updates of local copies for each website?

like image 694
Cory House Avatar asked Oct 23 '08 19:10

Cory House


1 Answers

If you are using subversion, you can branch your common code and use svn:external to keep an up to date version (or a specific tag) of the common code in your repository. (http://svnbook.red-bean.com/en/1.0/ch07s03.html)

Other SCM systems may have similar features.

like image 164
jon hohle Avatar answered Sep 30 '22 15:09

jon hohle