Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> the ability to load environment variables from a `.env` file

make can do that too. Put

  include .env
  export
at the top of the Makefile. Works for me on GNU Make 3.81 on MacOS.


Thanks, I was just looking for a way to do this today!

Looks like there are some caveats and a slightly different approach: https://unix.stackexchange.com/a/235254




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: