Skip to content

Commit 51b2930

Browse files
committed
docs(config-application): add a config:push / pull example
1 parent ec4d494 commit 51b2930

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

docs/using_deis/config-application.rst

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,32 @@ Use ``deis config`` to modify environment variables for a deployed application.
2020
config:set set environment variables for an app
2121
config:unset unset environment variables for an app
2222
config:pull extract environment variables to .env
23+
config:push set environment variables from .env
2324
24-
Use `deis help [command]` to learn more
25+
Use `deis help [command]` to learn more.
2526
2627
When config is changed, a new release is created and deployed automatically.
2728

29+
You can set multiple environment variables with one ``deis config:set`` command,
30+
or with ``deis config:push`` and a local .env file.
31+
32+
.. code-block:: console
33+
34+
$ deis config:set FOO=1 BAR=baz && deis config:pull
35+
$ cat .env
36+
FOO=1
37+
BAR=baz
38+
$ echo "TIDE=high" >> .env
39+
$ deis config:push
40+
Creating config... done, v4
41+
42+
=== yuppie-earthman
43+
DEIS_APP: yuppie-earthman
44+
FOO: 1
45+
BAR: baz
46+
TIDE: high
47+
48+
2849
Attach to Backing Services
2950
--------------------------
3051
Deis treats backing services like databases, caches and queues as `attached resources`_.

0 commit comments

Comments
 (0)