Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What kind of safeguards do you use to avoid accidentally making unintended changes to your production environment?

Because we don't have a good staging environment we often have to debug issues on our production systems. We have web, application, and database servers.

What kind of safeguards do you use to avoid accidentally making unintended changes to your production environment when doing this?


EDIT:

The application is a very complex B2B vertical web application. There is a lot of data involved. Some tables have close to 100 million records.


EDIT:

The staging environment we have in place does not have the capacity to mirror production. There are also hundreds of gigabytes of data files involved besides the actual database data.


EDIT:

We do use source control for the code but not for the stored procedures. There are some old stored procedures in source control but nobody keeps that updated anymore.

The main concerns are the database and data on the file system.

BTW, I am a consultant at this company, not an actual employee.

like image 750
TWA Avatar asked Jun 05 '09 15:06

TWA


2 Answers

The most direct answer is: "Don't do that."

like image 76
GEOCHET Avatar answered Sep 22 '22 17:09

GEOCHET


source control. nothing like a rollback when things to irreparably wrong. Also, a diff can help you replicate the changes to other production systems.

like image 42
Jimmy Avatar answered Sep 21 '22 17:09

Jimmy