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
Chirag Aggarwal -
Megan Lee -
Nozibul Islam -
Bala Madhusoodhanan -
Top comments (0)