A
A
Alek Ivanov2020-04-29 12:46:22
GitHub
Alek Ivanov, 2020-04-29 12:46:22

How to upload an existing website to github?

There is a test site on wp.
I want to record changes on the site for myself.
Is there some kind of plugin to sync changes or how to upload to github so that you can create an updated version with changes.
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rickkk, 2020-04-29
@Rickkk

I don't recommend the plugin.
If you don't know git well, but want to upload code to github, use gitkraken. Connect it to your github account. Its interface is quite simple.

S
Sergey Pankov, 2020-04-29
@trapwalker

WP is a CMS .
It stores content in a database.
What do you call "changes"?
If we are talking about content, then you do not need to place it in the version control system (github).
In addition to content, a WP site has a configuration. Part of the configuration, as far as I understand, is in the database, and part can be moved to the settings files.
It makes sense to move these files to git.
Your site is ideally a few docker containers:

  1. wordpress container
  2. database container
  3. a container with nginx to give static and route several separate pieces of the site. for example, you connect a separate gallery or something else.

This is the minimum set. Sometimes the site is rendered immediately and given as static. That way it gets faster. Rendering is done in a separate container, sometimes on a separate machine.
The docker hub has a ready-made standard container with wordpress. It is ideal not to modify it at all. But wordpress somehow loves to update itself. I don't know how exactly to do it with him.
The beauty of containerization is that in order to backup a site, you only need to back up a database and a couple of docker files, a docker compose and a handful of configs. You can also upload an archive with a design to the repository.
This is done using the usual git command. Completely with the aunt how to work with him.
Are there specific questions?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question