admin管理员组文章数量:1418437
Here is what I'm looking to do. I would like to set up two WordPress sites. The one site will be the production and the other site will be the staging.
What I'm trying to accomplish is to have the main site be used for production only, and the staging for development changes to make sure it works with the current data.
Here is what I'm looking to do. I would like to set up two WordPress sites. The one site will be the production and the other site will be the staging.
What I'm trying to accomplish is to have the main site be used for production only, and the staging for development changes to make sure it works with the current data.
Share Improve this question edited Aug 5, 2019 at 15:47 Nicolai Grossherr 18.9k8 gold badges64 silver badges109 bronze badges asked Aug 5, 2019 at 15:06 Kevin DavisKevin Davis 232 bronze badges 2- 2 You definitely could do this, but no good can come from combining the databases. Keep them separate. – rudtek Commented Aug 5, 2019 at 15:25
- Yes, nogood. Look for the Plugin: WP-Staging, it can do what you want to do. – user3135691 Commented Aug 5, 2019 at 15:26
1 Answer
Reset to default 4You won't be able to use the same database. If you do your going to have all sorts of problems. With the biggest problem being you cannot have two different values for the site URL.
I would suggest a managed hosting solution such as Pantheon. This will provide you with a development, test, and live environment.
All code updates are made in your development environment. From there you deploy those changes to the test environment.
When deploying to the test environment, there is an option to pull in the database and media files from the live environment.
After thoroughly testing everything in the test environment. You'll deploy your changes to the live environment.
If everything was working in the test env. You can be certain that you didn't introduce any bugs in the live environment after you deployed.
The nice thing about Pantheon is you can spin up a new sandbox site for free. Once your ready to launch. You'll obviously have to switch to a paid plan.
If Pantheon is out of the question. I recommend recreating a similar workflow with your current hosting provider.
Let me know if you have any questions.
本文标签: multisiteTwo WordPress sites sharing the same database
版权声明:本文标题:multisite - Two WordPress sites sharing the same database 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745267757a2650705.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论