DEV Community

Discussion on: Tell me about a time you messed up

Collapse
 
matthewbdaly profile image
Matthew Daly

My main role is maintaining a legacy intranet system for a high street bank in the UK. As it's built with Zend 1, modern concepts like environment variables for config weren't integrated into its design.

Last year I was testing a scheduled task that sends users email notifications when the resources they posted on the site are coming up to their expiry dates. I had changed the config to point at Mailtrap, then I reverted some changes, and re-ran the script - now using the live settings. Fifty-odd users got an email about their resources expiring.

Needless to say, the next thing I did was to move the mail config for development to DotEnv so it wouldn't happen again...