Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline ENV vars not working when using Dotenv with Foreman #755

Open
pezholio opened this issue Feb 25, 2020 · 0 comments
Open

Multiline ENV vars not working when using Dotenv with Foreman #755

pezholio opened this issue Feb 25, 2020 · 0 comments

Comments

@pezholio
Copy link

I've recently encountered a problem when using Foreman in conjunction with Dotenv on a Rails project. I've got a ENV file with a multiline string like so:

MULTILINE_ENV_VAR="
Here is
a multiline
env var
"

When I spin up the application as normal (i.e. bundle exec rails s) the env var works as expected, however, if I add the command to a Procfile like so:

web: bundle exec rails s

And run foreman start, the ENV var gets munged. I've created an example Rails project here to demonstrate the error. Here's some screenshots too:

With rails s

image

With foreman start

image

I'm not sure if this is a bug with Dotenv or Foreman, but thought it best to try here first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant