Remy Sharp's blog Welcome!

Hello and welcome to my b:log. I'm Remy Sharp, a developer running my own business called Left Logic out of Brighton, UK. This place will mostly concentrate on web, code, a touch of business and some other personal pieces too. Enjoy!

Latest: 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.

Read the rest of this entry »

Recently Updated

Remy Elsewhere