Odd behavior when performing config:push relating to newlines
ifd3f opened this issue · comments
Something weird happens with newlines when I push these .env
files.
DISCORDTOKEN=foo
LOGLEVEL=20
HSAPI=bar
When I push this, the DISCORDTOKEN
and LOGLEVEL
lines will not be parsed correctly, but HSAPI
will.
DISCORDTOKEN=foo
HSAPI=bar
LOGLEVEL=20
When I push this, the DISCORDTOKEN
and HSAPI
lines will not be parsed correctly, but LOGLEVEL
will.
DISCORDTOKEN=foo
LOGLEVEL=20
HSAPI=bar
If I add a trailing newline, HSAPI
also does not get parsed.
@Plenglin All right, sorry for the delay here! Your problem is twofold.
The file you sent had windows-style line breaks (\r\n
) instead of unix (\n
), so that's why there was some weirdness with the newlines. I'll release a fix to handle that and you should be ok.
Secondly, your hs-api
variable has an invalid name. Since heroku runs on linux, variable names must conform to those valid in unix. I'd recommend hs_api
instead. I'll make a note in the readme that clarifies this.
Release is out, should be all set here. Thanks for the report!