Skip to content

Instantly share code, notes, and snippets.

@andreasvirkus
Created September 12, 2017 11:43
Show Gist options
  • Save andreasvirkus/8a756fd61193f8b73de4dd21714eaae5 to your computer and use it in GitHub Desktop.
Save andreasvirkus/8a756fd61193f8b73de4dd21714eaae5 to your computer and use it in GitHub Desktop.
Running npm scripts with env variables; the comfy way.
NODE_ENV=development
export $(cat .env)
npm run dev # NODE_ENV holds the value 'development'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment