-
Notifications
You must be signed in to change notification settings - Fork 53
.env file, and configuration variables with newlines #891
Comments
We have multiline tests for We should move this to https://github.com/deis/workflow-cli since |
@helgi Thanks for the reply. I know about test-case (I linked to it in my original post), but this is about It's less about if the backend can handle newlines, and more about how I handle newlines in a |
The best way would be to base64 encode your environment variable and then decode it within your app. So far that's been the best way to preserve newline characters within environment variables. |
Yes, I mentioned that in my initial post:
But as I said, that seems more like a work-around, or are multiline values simply not supported in I opened this issue, because there are test-cases for |
Moved this to the CLI project deis/workflow-cli#228 |
I've seen this issue being tested in #268, except that that involves
deis config:set
, notdeis config:push
.I have a
.env
file, that I want to contain a public key:The question is: how to I get this into a
.env
file, and have it loaded properly as an environment variable? My attempts so far have failed.I tried:
and the same as above, but with single quotes.
None of these seem to do the trick.
I ended up base64 encoding the key, and decoding it on runtime, but that just seems like a workaround, not a proper solution.
The text was updated successfully, but these errors were encountered: