Skip to content

Instantly share code, notes, and snippets.

@Godofbrowser
Last active September 20, 2023 10:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Godofbrowser/4c0317bdfbcf71d14e760a014e27dd3b to your computer and use it in GitHub Desktop.
Save Godofbrowser/4c0317bdfbcf71d14e760a014e27dd3b 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