Export .env file to your environtment variable.
export $(cat .env | xargs)
Make sure file is exists
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
Use this if your env file doesn't have #
char.
source .env
Cheatsheet collection for go, rust, python, shell and javascript.
Export .env file to your environtment variable.
export $(cat .env | xargs)
Make sure file is exists
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
Use this if your env file doesn't have #
char.
source .env