This should work
export $(cat .env | xargs)
But not all time namely if it includes some comments and you are running it with sh (not bash)
Then, mitigate this issue by using instead:
export $(cat .env | sed 's@#.*@@'| tr -d '' | xargs)
This should work
export $(cat .env | xargs)
But not all time namely if it includes some comments and you are running it with sh (not bash)
Then, mitigate this issue by using instead:
export $(cat .env | sed 's@#.*@@'| tr -d '' | xargs)
For further actions, you may consider blocking this person and/or reporting abuse
Hicks Martensen -
Egelund Bach -
SkillBoostTrainer -
Juel Ladefoged -
Top comments (0)