Last Updated: February 25, 2016
·
182
· frunns

Today's favorite

Setting your local variables in .env on Heroku:

heroku config:set (tr '\n' ' ' < .env.local)

Works with this syntax:

VARIABLE_NAME=VALUE

1 Response
Add your response

This actually didn't work, I had to do it in two separate steps. Don't know if it was heroku or fish playing tricks on me.

tr '\n' ' ' < .env.local | pbcopy
heroku config:set <paste here>
over 1 year ago ·