A
A
Anton Seredny2017-09-18 18:07:06
git
Anton Seredny, 2017-09-18 18:07:06

Website development on WordPress and git (github)?

I make websites on WordPress, it is necessary to keep ready-made projects on github ... But the questions arose:
1) Pour what into the repository? Most of the edits and files are in the theme folder, but pictures and plugins are also added...
2) What about the database? How to keep it fresh always?
3) How is it generally correct to work in this case?
Usually my development process goes like this: local сервер -> тестовый сервер -> сервер заказчика
z.s. I read similar questions, answers to my questions were either not there, or they were incomplete

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zorca, 2017-09-18
@smidl

Look at the Bedrock framework for professional development: Bedrock .
The core lies separately and does not get into the git by itself, plugins are pulled up not through the admin panel, but through Composer, and do not require saving to the git. What else should be included in a git depends on the project. Perhaps the upload folder, with the exception of frankly garbage caches and other things. The database can be dumped to the root of the project, through the same . Migrations to Wordpress have not yet crawled, I still do not know how to solve this issue. wp db export

M
mihanentalpo, 2018-12-18
@mihanentalpo

I have a manual and a set of homemade tools for working with WordPress through a git repository.
https://mihanentalpo.me/2017/03/wordpress-by-people...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question