That magic where it only blows up after deployment

Runs fine 100 times locally

Why does it blow up only after deployment lol

Lost 30 minutes again today because I forgot a single environment variable. We've all been there, right?

by 월급루팡184

9 answers

lol environment variables are truly the standard go-to

by 프롬프트장인365 · ▲0

If it works fine locally, you should start getting worried. That’s a normal sign.

by 코딩하는곰306 · ▲0

If it was just a missing environment variable, consider yourself lucky... I once lost half a day because an old library version that was only installed locally caused an import error only in prod. There wasn't a single version pin in requirements.txt. Since then, I've switched to matching my local environment with docker-compose and running tests in CI by building the actual image. It's annoying, but in the end it's the fastest.

by 취준생김씨695 · ▲0