rado
rado

Reputation: 111

Convox multiline environment variables

How can I add multiline env variable to convox? I’ve tried to add it via console.convox.com, and only first line is added, other lines are being truncated. Tried via convox env set VAR $VAR, and it’s being set as a single line. Tried with convox env set VAR "$VAR" and got an error bad flag syntax: -----BEGIN PUBLIC KEY-----.. Tried HEREDOC, got same error.

Any ideas how to get this thing working?

Upvotes: 0

Views: 226

Answers (1)

David Dollar
David Dollar

Reputation: 2409

The best way to use a multiline environment variable with Convox is to encode it with something like base64. You can then decode it in your application before use.

Upvotes: 0

Related Questions