Forgetting to set environment variables in nodejs apps
▻https://hackernoon.com/forgetting-to-set-environment-variables-in-nodejs-apps-1f45ff113ce5?sour
tl;dr yarn add —dev faceplantYou’ve developed your killer express app. It’s passing unit tests, integration tests, end-to-end tests... You’re so content that you print the code out and pin it to your fridge. You deploy to production, but in a few hours, you get complaints that the service is more or less completely useless. You dig through debug logs, but to no avail — there’s nothing obviously wrong, and tests are passing, so your users must just be exaggerating. All of them.Or maybe you forgot to set an environment variable in production.From my experience, this is the #1 source of service failure in well-tested production apps, and this has reared it’s ugly head at #meeshkan as well.To fix this, we made faceplant, a #tslint plugin for production workloads. The goal is to replace start (...)