Jump to content

Setting up a development environment


envexlabs

Recommended Posts

Hey,

 

My company has a website that is mysql and php driven. We are constantly adding new features and tweaking old ones, but we don't like to make changes while the page is live.

 

This is more of a "how do you do it" discussion. I'm wondering what the best way would be to setup a development environment would be.

 

Should i just dup the file and rename it? Subversion? Subdomains?

 

Thanks,

 

envex

Link to comment
https://forums.phpfreaks.com/topic/127399-setting-up-a-development-environment/
Share on other sites

First off your development environment should be totally separate from your production environment - i.e. not on the same server(s). There are many different routs to take depending on your particular application and how many people are working on it.

 

In some instances it would be beneficial for each developer to have his own development environment so code that each person is working on does not interfere with the other's code. Each person can work on their own code against the current production code until it is ready for check-in. Of course this method requires VERY strict control of the code being checked-  in/out to ensure one person does not overwrite another's code.

 

Or, you could simply set up a spare machine to act as your development environment with each person working on the same set of code. For a dev environment it is best not to have it accessible outside your network.

 

Also, you might benefit from having a stage environment that mimics your production environment so you can roll out a new release and ensure it is working properly before moving to production. In addition, you can have one or more test environments between development and stage. It all depends upon your needs, resources and the risk you want to take on.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.