$ cat > .env << EOL
foo=foo
foobar="foo bar"
EOL
$ env grep -v '^#' .env | xargs -d '\n' -t
echo foo=foo foobar="foo bar"
env: ‘bar"’: No such file or directory
$ env $(grep -v '^#' .env | xargs -d '\n') node_modules/.bin/micro -l tcp://0.0.0.0:3000
env: ‘bar"’: No such file or directory
Last active
September 3, 2018 14:00
-
-
Save daliborgogic/ae3e8a5cf6a50d7ab096d5ad3f901829 to your computer and use it in GitHub Desktop.
Set environment variables from file
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Real example
Problem tmp solved