Set multiline ENV variable in production

Did you try to set up a private key as ENV variable in production but you get the following error:

So if you are setting your ENV variables through a terminal tool, use the following approach:

Next, we need to remove the escape character added when setting the key:

That’s it we have fixed this error and our customers are happy again! 🙂

Tagged , , , ,