Published - 4 years ago ( Updated - 4 years ago )
Save .env content to system environment variables
For example, I have a .env file with the following contents:
Execute env to view
For example, I have a .env file with the following contents:
test1=abc
test2=def
Execute the following command:
export $(grep -v '^#' .env | xargs)
You can see this environment variable on your host side. Execute env to view
env
No Comment
Post your comment