Multiline config vars
koenpunt opened this issue · 3 comments
koenpunt commented
Currently it is not supported to push a multiline variable from the .env
file to heroku.
jpadilla commented
ddollar commented
I don't believe there is a way to do this and remain compatible with Foreman, bash, and Heroku. Let me know if you can think of how to format the .env file for this.
koenpunt commented
It actually works with \n
, but I still have problems with spaces:
Having the following in a variable (with newlines replaced for a literal \n
):
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAhcc+cZXqmflSkSsvd2tB06TCYfwu2UXkRTvEj/8YVJu8J4xw
mW5iZDL1n+O36l3Cs0MxgCvlZt9i3vOXtdYQXqx5hRJyChsOHN0YkhQCR9y2hLzN
.............
/UqkuCOp56ZLQWkvFsorZTeIbEXjHPbjObHeIpvsu+LhP6r3C7bTVr0Q6eIJIRrU
WPa9AQK1WTvvtAvUeVOvX1r+YNZhoGggxs5aq/8DkTbvoIkBW5Y=
-----END RSA PRIVATE KEY-----
Gives the following error because of word splitting:
export: not valid in this context: KEY-----\
Even when the string is enclosed in quotes.