U
U
Underdoggit2019-07-03 08:49:36
git
Underdoggit, 2019-07-03 08:49:36

git integration with wordpress?

Hello everyone, tell me the correct approach to git integration in development. I use git in the daily layout of the project that I upload to github. I never imagined how you can use git directly with wp. It seemed to be somewhat uncomfortable.
Questions: Is it correct to use git directly on the server where the site is located? What files are usually added to ignore if the development is from scratch (creating a template and landing layout on it). Or it is better to use a test server on which to work, and then merge the finished code with the base to the client's server. We do not have teamwork, each developer is responsible for his own project, so only the rollback function is important in case of overlays and errors in work.
UPD: Another question is how much the constant refinement of the project, and the cancellation of changes, or vice versa, the addition affects the work of SEO and the search robot - are there any conflicts and does it lower the ranking of the site?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zorca, 2019-07-03
@Underdoggit

Git is usually used on a local server. The stage server is configured in such a way that every time the project changes, all changes are sent to it. With each change, the project is cloned into a new folder, and after successful cloning, the symlink to this folder is changed. The most convenient structure for such a project is Bedrock . At the same time, the folders of pictures and configs do not change the location. Paths to them are also set by symlinks.

P
Puma Thailand, 2019-07-06
@opium

everything except the upload files in the repo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question