File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
1010
1111For a steady stream of TILs, [ sign up for my newsletter] ( https://tinyletter.com/jbranchaud ) .
1212
13- _ 1109 TILs and counting..._
13+ _ 1110 TILs and counting..._
1414
1515---
1616
@@ -323,6 +323,10 @@ _1109 TILs and counting..._
323323- [ Sleep For A Duration] ( go/sleep-for-a-duration.md )
324324- [ Upgrading From An Older Version On Mac] ( go/upgrading-from-an-older-version-on-mac.md )
325325
326+ ### Heroku
327+
328+ - [ Set And Show Heroku Env Variables] ( heroku/set-and-show-heroku-env-variables.md )
329+
326330### HTML
327331
328332- [ Adding Alt Text To An Image] ( html/adding-alt-text-to-an-image.md )
Original file line number Diff line number Diff line change 1+ # Set And Show Heroku Env Variables
2+
3+ The ` heroku ` CLI includes the ` config ` command which will show all the env
4+ variables for the current app.
5+
6+ ``` bash
7+ $ heroku config
8+ === my-app Config Vars
9+
10+ ```
11+
12+ At this point I have none set.
13+
14+ I can set one with the ` config:set ` command and a key-value parameter.
15+
16+ ``` bash
17+ $ heroku config:set PUBLIC_NEXT_URL=http://localhost:1235
18+ Setting PUBLIC_NEXT_URL and restarting ⬢ my-app... done, v3
19+ PUBLIC_NEXT_URL: http://localhost:1235
20+ ```
21+
22+ I can see the value that this specific variable is set to by calling it with
23+ ` config:get ` .
24+
25+ ``` bash
26+ $ heroku config:get PUBLIC_NEXT_URL
27+ http://localhost:1235
28+ ```
29+
30+ [ source] ( https://devcenter.heroku.com/articles/config-vars#using-the-heroku-cli )
You can’t perform that action at this time.
0 commit comments