All your envs in a row

If you’ve used Zeit’s Now platform you’ll know to get your environment values readable by your code, you have to jump a few hoops.
There are solutions in place, you can put your environment values in a now.json file and you can use the zeit/now-env to read the values during dev, but I’m not a fan.
My preference is to use .env files and split across .env.local, .env.production etc (which as it happens goes against the Twelve-Factor App manifesto – but that’s my choice). So here’s a command that moves all the values from your .env into the command line during deployment.

Link: http://feedproxy.google.com/~r/remysharp/~3/jgZCp46YuLc/all-your-envs-in-a-row