$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugin development - How developed with version control word press site on shared host?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugin development - How developed with version control word press site on shared host?

matteradmin9PV0评论
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 6 years ago.

Improve this question

I have web site online now I want to connect it with version control. It deploy on shared host. Because When change online it effect the site I want try local and deploy changes.

I downloaded all files of WP site and connect with DB but when click It redirect to online.

I want to connect shared host with git

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 6 years ago.

Improve this question

I have web site online now I want to connect it with version control. It deploy on shared host. Because When change online it effect the site I want try local and deploy changes.

I downloaded all files of WP site and connect with DB but when click It redirect to online.

I want to connect shared host with git

Share Improve this question edited Oct 19, 2018 at 17:45 Mohamed Fouad asked Oct 19, 2018 at 16:33 Mohamed FouadMohamed Fouad 113 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You should familiarize yourself with a Version Control System. Most people are using Git these days, however, there are other systems such as

  • Subversion
  • CVS
  • Mercurial

And plenty of others.

The way I typically see WordPress projects in Version Control is the following:

  • Everything in your /wp-content/ should be in your repository
  • Things like wp-config.php and /wp-admin/, etc, should generally not be in your version system for a few reasons:
  • Putting your wp-config.php in version control means you are storing things like DB_PASS or your salts in a repo, which can be bad if you don't want other collaborators or possibly the public seeing that information (depending on where you host your code)
  • You generally don't need or want to control core WordPress files as you will probably be replacing them when new versions are released, and otherwise you shouldn't be modifying these files, hence no need for VCS.

Next, you need a way to hook your versioning system up to your server. This will depend on what you use for VCS and where your site is hosted, etc. Generally, you'll want some kind of task that can "listen" for changes in your repository and automatically pull the latest changes, prepare your files, and push them up to your live server.

Your question is really too broad to give you anything concrete to go on, I would just learn something like Git and familiarize yourself with good workflow practices (how to branch and merge, how to avoid and handle merge conflicts, etc).

Post a comment

comment list (0)

  1. No comments so far