简体   繁体   English

如何使用git为Wordpress网站设置本地服务器

[英]How to setup local server for wordpress site with git

I'm working on a WordPress site via Sourcetree. 我正在通过Sourcetree在WordPress网站上工作。 The previous dev working on this project had set up a local server with Docker, however I have no experience with this. 之前从事该项目的开发人员已使用Docker设置了本地服务器,但是我对此没有经验。

My question is - how can I connect to localhost to start developing? 我的问题是-如何连接到localhost开始开发?

Note- 注意-

  1. I've downloaded mysql, xampp and wordpress locally 我已经在本地下载了mysql,xampp和wordpress
  2. I have experience developing wordpress sites locally (via an FTP such as FileZilla), however I've never done so with git included. 我有在本地开发Wordpress网站的经验(通过FileZilla等FTP),但是我从来没有在git中开发过。

Thanks. 谢谢。

Try to follow these instructions: https://premium.wpmudev.org/blog/setting-up-xampp/ 尝试遵循以下说明: https : //premium.wpmudev.org/blog/setting-up-xampp/

Probably one thing that you are not doing properly is that your project doesn't sit in xampp/htdocs/myproject as that way you can access it through http://localhost/myproject 可能您做得不好的一件事是您的项目不在xampp / htdocs / myproject中,因此您可以通过http:// localhost / myproject访问它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM