Skip to content

Commit

Permalink
Merge pull request dokku#7399 from nonZero/patch-1
Browse files Browse the repository at this point in the history
docs: add -w 0 to base64 for safe usage in ssh commands
  • Loading branch information
josegonzalez authored Dec 10, 2024
2 parents b258221 + dc57774 commit f355a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuration/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dokku config:set node-js-app KEY="VAL\ WITH\ SPACES"
Dokku can also read base64 encoded values. That's the easiest way to set a value with newlines or spaces. To set a value with newlines you need to base64 encode it first and pass the `--encoded` flag:

```shell
dokku config:set --encoded node-js-app KEY="$(base64 ~/.ssh/id_rsa)"
dokku config:set --encoded node-js-app KEY="$(base64 -w 0 ~/.ssh/id_rsa)"
```

When setting or unsetting environment variables, you may wish to avoid an application restart. This is useful when developing plugins or when setting multiple environment variables in a scripted manner. To do so, use the `--no-restart` flag:
Expand Down

0 comments on commit f355a4e

Please sign in to comment.