I kept deploying broken .env files, so I built a tool to catch them

rust dev.to

I kept deploying broken .env files, so I built a tool to catch them You know the feeling. You push to production, the app crashes, and the logs say: Error: DATABASE_URL is not defined You check your .env file. It's there. You check your code. It's there. Turns out you added DATABASE_URL to .env.example but forgot to update the actual .env on the server. Or worse: you removed a variable from the code but left it in .env, and now you have a mystery secret sitting in production with

Read Full Tutorial open_in_new
arrow_back Back to Tutorials