Staging enviornment setup
Asked Answered
T

1

0

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?

Tharpe answered 31/12, 2010 at 21:40 Comment(0)
P
0

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.

Paynim answered 31/12, 2010 at 23:36 Comment(3)
If you say URLs should not be the same this means: all the links hardcoded in the html will not work then? If I have something going to www.abc.com/signup.php assuming abc is my live domain and my test site is on www.abctest.com then i will be directed to the live site instead of the stg site when i click the signup link?Tharpe
If you have hardcoded absolute urls in your html, you have bigger problems. Replace your development team.Paynim
@Tharpe - use relative URLs, or for links outside of your domain, use config files to specify data like this which may change between environments (or over time)Subinfeudation

© 2022 - 2024 — McMap. All rights reserved.