Skip to content

Instantly share code, notes, and snippets.

@atipezda
Forked from Godofbrowser/heroku-auto-set-env.md
Created September 20, 2023 10:46
Show Gist options
  • Save atipezda/36cc17ceee25d034ea2702eeac65ca98 to your computer and use it in GitHub Desktop.
Save atipezda/36cc17ceee25d034ea2702eeac65ca98 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