如何为现有站点设置暂存环境?特别是。使用子域?

发布于 2024-12-02 12:04:29 字数 390 浏览 2 评论 0原文

我有大约 5 个站点,到目前为止,所有开发更改都直接在实时服务器上进行,更改将首先在测试文件上进行,如果可以,将用原始文件替换它。

但是,我现在无法继续使用这种方法,因为该站点已经变得非常复杂,并且测试更改通常也涉及对数据库的更改。我还将让一些外包开发人员在该网站上工作。所以现在需要弄清楚如何设置一个环境,以便开发人员。团队可以对可能在同一服务器上运行的测试环境进行更改,可能作为主域上的子域,但不确定如何进行。

我们的网站托管在具有 WHM/Cpanel 设置的单个专用服务器上。现在,

a)我如何创建一个临时环境,让他们可以访问最新文件和实时数据库的数据库副本? b) 如何跟踪他们更改/更新的所有文件,以便我可以将它们复制到实时服务器并上传?

我可以/应该考虑其他方法吗?我不太确定该怎么做。

I have about 5 sites where till date all development changes have happened directly on the live server, where the change would be made on a test file first and if ok, would replace it with the original file.

However, I can't really continue with this approach now because the site has become quite complex and testing changes usually involves changes to DB as well. I will also be having some outsourced developers working on the site. So now need to figure out how to set up an environment such that the dev. team can make changes to a test environment running perhaps on the same server, as a subdomain on the main domain perhaps, but not sure how to go about it.

Our sites are hosted on a single dedicated server with WHM/Cpanel setup. Now,

a) how do I go about creating a staging environment where they have access to the latest files and a db copy of the live db?
b) how do I track what all files they've changed/updated, so that I can then copy them to the live server and upload?

Is there some other approach I can/should consider? Am not really sure how to go about this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文