From the course: PHP: Testing Legacy Applications

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Difficult deployments

Difficult deployments

From the course: PHP: Testing Legacy Applications

Start my 1-month free trial

Difficult deployments

- [Instructor] A critical step for testing that a lot of folks miss is the idea that the environment you run your test in needs to be as close as it can be to production. My experiences with legacy code bases have been that reproducing the production environment locally can be difficult and even sometimes impossible. This leads to bugs that only appear in one environment as opposed to another. On top of this, you will sometimes not be able to reproduce bugs locally. So what are some things we can do to help make it easier to deploy our applications anywhere and at anytime? I think the first step is to eliminate the human factor. Anything that you have been doing by hand to deploy your application really, really, really needs to be replaced by something automated. It can start off as a shell script that runs the commands that you type into your shell when deploying and eventually become something complicated like Puppet or Chef. Or even using something like Heroku's tools to push your…

Contents