have I done a dumb thing. I've added loading of a ...
# general
a
have I done a dumb thing. I've added loading of a
.env
file to the pants bootstrapper.
Copy code
if [[ -f ".env" ]]; then 
  warn "Loading .env file" 1>&2
  export $(cat .env | xargs)
fi
feels like it's a cheap way to load the contents of a .env file every time its needed.
c
In recent version of the bootstrap script it does this already, no need to patch it then. ;)
(Almost, it sources a .pants.bootstrap script if it exists. Name is configurable.