暂存环境设置
我的开发团队在海外。目前,他们将所有工作上传到一个测试网站,但如果有人确实知道测试 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
限制访问可以通过计算机上的防火墙规则来完成,但是通过将计算机置于虚拟专用中可以更轻松地完成网络,并仅向需要访问权限的人员授予对该网络的访问权限。
您的测试和生产环境最好是不同的机器,所以不行 - URL 不应该相同。
VPN 解决方案可以很好地处理这个问题。
为了保证生产数据的安全,您需要拥有不同的数据库,但具有相同的布局。
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.
A VPN solution will handle this just fine.
You need to have a different database for safety of your production data, but with the same layout.