ruby on rails - Dotenv multiline variables -
i'm using dotenv
.
a ruby gem load environment variables
.env
.
is possible have multiline variables in .env
file?
e.g.
something_certificate="-----begin certificate----- jsdfaldafssklabvcxzlv2314ih4ihdfg9aydf9dssdf82qweiwfhdssd8sadf0= -----end certificate-----"
^ having above throws error on middle line, if it's not part of string , i'm trying create improperly formatted variable.
did try reading the documentation?
multi-line values
if need multiline variables, example private keys, can double quote strings , use \n character newlines:
private_key="-----begin rsa private key-----\nhkvn9…\n-----end dsa private key-----\n"
Comments
Post a Comment