23
Vent: My code worked fine until I pushed it to production last night
Had a simple PHP form that collected email signups. Tested it locally maybe 10 times, all good. Pushed it to the live server around 9pm and woke up to 400 error reports this morning. Turns out I forgot to change the database connection string from localhost to the actual server. Rookie mistake but I've been coding for 6 months now so that stings. Anyone else have a deploy fail because of something this dumb?
3 comments
Log in to join the discussion
Log In3 Comments
jamesroberts12d ago
Emery_black yeah that panic is real" I started keeping a deploy checklist saved in my notes.
4
emery_black12d ago
Laughed out loud at this because I literally did the exact same thing last month with a WordPress plugin. Spent 3 hours debugging before realizing I hardcoded my local IP address in the config file. Still feel the shame every time I look at that commit. Did you at least fix it fast or was it a whole morning of panic?
1
eric_knight712d ago
Had a buddy who once pushed a database password to a public repo and only noticed three months later.
6