暂存环境设置

发布于 2024-10-09 21:20:59 字数 394 浏览 0 评论 0原文

我的开发团队在海外。目前,他们将所有工作上传到一个测试网站,但如果有人确实知道测试 URL,它就会暴露在互联网上。所以我想设置一个暂存环境并使用我的准确 URL 进行测试。

有三件事: 1) 让互联网用户远离临时环境,直到我推送到实时环境。 - 这是在服务器级别通过将其指向与实时 IP 不同的 IP 来完成的吗?但我假设两个环境之间的 URL 是相同的,所以 IP 也将是相同的?

2)我需要访问该网站。由于团队在海外,而我在美国,因此我应该能够访问测试站点。因此,如果我阻止所有互联网用户,那么我也会被阻止吗?或者如何只允许我和我的团队访问暂存的测试站点?

3) 数据库:我们在 stg 上使用的数据库是否与 live 上使用的数据库相同?如果是这样,如何处理所有测试数据?如果不同,那么我们是否需要使用相同的表名等?

My development team are offshore. Currently they upload all work to a test website however it is exposed to the internet if someone actually knew the test URL. So I want to setup a staging enviornment and use my accurate URL for testing.

There are three things:
1) Keep internet users out of staging env until I push to a live environment. - Is this done at the server level by pointing it to a different IP from the live IP? But i assume the URL is same between both enviornments so the IP will be same too?

2) I need to access the site. Since team is offshore and I am in the US, I should be able to access the test site. so if i block all internet users then do I get blocked too or how to go about only allowing my team and me access to the test site on staging?

3) The database: Are we using the same database on stg as on live? If so what to do with all the test data? If different then do we need to use same table names, etc?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请远离我 2024-10-16 21:20:59

1) 让互联网用户远离临时环境,直到我推送到实时环境。 - 这是在服务器级别通过将其指向与实时 IP 不同的 IP 来完成的吗?但我假设两个环境之间的 URL 相同,因此 IP 也相同?

限制访问可以通过计算机上的防火墙规则来完成,但是通过将计算机置于虚拟专用中可以更轻松地完成网络,并仅向需要访问权限的人员授予对该网络的访问权限。

您的测试和生产环境最好是不同的机器,所以不行 - URL 不应该相同。

2) 我需要访问该网站。由于团队在海外,而我在美国,因此我应该能够访问测试站点。因此,如果我阻止所有互联网用户,那么我也会被阻止吗?或者如何只允许我和我的团队访问暂存的测试站点?

VPN 解决方案可以很好地处理这个问题。

3) 数据库:我们在 stg 上使用的数据库与在 live 上使用的数据库相同吗?如果是这样,如何处理所有测试数据?如果不同,那么我们是否需要使用相同的表名等?

为了保证生产数据的安全,您需要拥有不同的数据库,但具有相同的布局。

1) Keep internet users out of staging env until I push to a live environment. - Is this done at the server level by pointing it to a different IP from the live IP? But i assume the URL is same between both environments so the IP will be same too?

Limiting access can be done by firewall rules on the machine, but it's more easily accomplished by putting the machine in a Virtual Private Network and giving access to that network only to the people who need access.

Your test and production environments had better be different machines, so no - the URL should not be the same.

2) I need to access the site. Since team is offshore and I am in the US, I should be able to access the test site. so if i block all internet users then do I get blocked too or how to go about only allowing my team and me access to the test site on staging?

A VPN solution will handle this just fine.

3) The database: Are we using the same database on stg as on live? If so what to do with all the test data? If different then do we need to use same table names, etc?

You need to have a different database for safety of your production data, but with the same layout.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文