Heroku の環境変数の管理

matsuo
matsuo
Dec 14, 2018 · 3 min read

dotenv 的にファイルを用意する

APP_NAME=example
DEBUG=false
USER=foobar

Heroku に一括で設定する

heroku config:set -a example `cat .env.heroku`

すでに設定済みのHerokuの環境変数を取得する

=== example Config Vars
APP_NAME: example
DEBUG: false
USER: foobar
APP_NAME=example
DEBUG=false
USER=foobar

もっとしっかり管理したければ

    matsuo

    Written by

    matsuo

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade