File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ running:
48
48
49
49
.. code-block :: terminal
50
50
51
- $ php bin/console secrets:generate-keys --env=prod
51
+ $ APP_RUNTIME_ENV=prod php bin/console secrets:generate-keys
52
52
53
53
This will generate ``config/secrets/prod/prod.encrypt.public.php `` and
54
54
``config/secrets/prod/prod.decrypt.private.php ``.
@@ -78,7 +78,7 @@ Suppose you want to store your database password as a secret. By using the
78
78
$ php bin/console secrets:set DATABASE_PASSWORD
79
79
80
80
# set your production value
81
- $ php bin/console secrets:set DATABASE_PASSWORD --env=prod
81
+ $ APP_RUNTIME_ENV=prod php bin/console secrets:set DATABASE_PASSWORD
82
82
83
83
This will create a new file for the secret in ``config/secrets/dev `` and another
84
84
in ``config/secrets/prod ``. You can also set the secret in a few other ways:
@@ -253,7 +253,7 @@ your secrets during deployment to the "local" vault:
253
253
254
254
.. code-block :: terminal
255
255
256
- $ php bin/console secrets:decrypt-to-local --force --env=prod
256
+ $ APP_RUNTIME_ENV=prod php bin/console secrets:decrypt-to-local --force
257
257
258
258
This will write all the decrypted secrets into the ``.env.prod.local `` file.
259
259
After doing this, the decryption key does *not * need to remain on the server(s).
You can’t perform that action at this time.
0 commit comments