Development of several very similar projects at the same time

I am developing a semi-sophisticated website that is available in several countries at once. A lot of effort was made to make the code bases as similar as possible, and ultimately only the configuration file and some representative data will differ between them.

Each project has its own SVN repository, which is displayed directly on the test site. This part is processed by the IDE that we use to work.

Now I need to create some kind of system to synchronize all these projects.

The best theoretical solution so far is to create a local hook script that fires when executed and

  • Merge committed files from the project, which are transferred to all other projects

  • If necessary, upload them to the site, replace the previous files

The first problem is that I don’t know how I would merge - I think it will be like applying the SVN patch or something like that. Secondly, if I do not want to upload changes to a live server, how can I synchronize live and local code bases (replace old files?).

I post this question without encountering a potentially huge problem of solving the above problems, I believe that this is a fairly common situation, and someone already has a solution, while others may benefit from answers in the future.

Finally, I'm on windows7, developing PHP and using tortoiseSVN.

+3
source share
2

, , ( SVN), () ?

- :

--+
  +-+ project1
  | +- => common
  | +- config.file
  | +-+ data
  |   +- blah
  |   +- wrxgl
  |   +...
  +-+ project2
  | +- => common
  | +- config.file
  | +-+ data
  |   +- blah
  |   +- wrxgl
  |   +...
  +-+ project2
  | +- => common
  | ...
  +-+ common
    +- foo
    +- bar
    +- baz
    +...
+9

, . , , , , .

, . Django, gettext , ( .) .

+2

Source: https://habr.com/ru/post/1748871/


All Articles