Answer the question
In order to leave comments, you need to log in
How to support 2 sites using one template?
There is a certain site, its code is stored in github, you need to upload this site to the second domain, but with minor changes (font, color, texts in some places). Creating 2 repositories for each will be inconvenient, you will need to duplicate common commits. You can create 2 branches from master for each site and then, it turns out, merge the master with each branch when changes are made, but it seems to me that this will cause a bunch of conflicts. What is the best way to proceed and organize this with git?
Answer the question
In order to leave comments, you need to log in
1. Make two directories with styles, depending on the site, upload the desired directory to the desired domain.
2. If instead of the normal deployment process on the site you do git pull (ah ah ah, at least .git was hidden), then you can make two directories for different sites, and use the third one, which will be a link to the one you need and will be present not in the git, but directly on site
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question