PHP - managing version synchronization across multiple instance using a

bar338

New member
single code source? I have a code set which I would like to use on multiple websites. The code set defines a platform which will be used on multiple subjects. I want to force each website instance to automatically synchronize with this source so they always remain on the same version of code. It gets a little tricky become some website instances will not be a full version of the source code.

For example:
The source code consists of:
component A
component B
component C
component D
component E

Website Instance 1 consists of:
component A
component B
component C
component D
component E

Website instance 2 consists of just:
component A
component D
component E

Website instance 3 consists of just:
component A
component B
component C

Each instance may not have the same arrangement of components as the other, but the common goal is to retrieve the necessary components from the source code when an update occurs. My current approach involves running an update script which knows the configuration/make-up of each individual instance. It then replaces the entire website instance code with a copy of the newly updated code from the source. This works, but it seems to be messy an error prone. Is there a better approach for managing version synchronization across multiple instance using a single code source?

Thanks.
 
Back
Top