Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meatflavourdev/9981d4e5448230449a53260271836797 to your computer and use it in GitHub Desktop.
Save meatflavourdev/9981d4e5448230449a53260271836797 to your computer and use it in GitHub Desktop.
Heroku auto set env (for laravel and apps using .env files)

$ cd <application name>

Where is the dir where you have the .env file.

heroku config:set $(cat .env | sed '/^$/d; /#[[:print:]]*$/d')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment