这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@arthurschreiber
Copy link
Contributor

Right now, the following command completely messes up an apps ENV config file:

dokku config:set app "TEST=c\\na\\nb"

With these changes, the config file will contain look like expected:

export TEST='a\n\nb\nc'

@michaelshobbs
Copy link
Member

Awesome! Can you also add a test for this?

@arthurschreiber
Copy link
Contributor Author

Sure, if you promise me to get this merged 😛

@arthurschreiber
Copy link
Contributor Author

@michaelshobbs I added a test case, the CI build is running right now.

@arthurschreiber
Copy link
Contributor Author

@michaelshobbs Everything passed. 🎉

@arthurschreiber
Copy link
Contributor Author

@michaelshobbs Looks there is some issue somewhere else as well. Restarting an app causes the ENV file to become completely mixed up.

@arthurschreiber
Copy link
Contributor Author

I debuged the issue I've seen and a plugin was also doing echo -e on the ENV file, which was causing the ENV file to be messed up. I'll open a separate PR against the plugin as well.

This PR against dokku is ready.

@josegonzalez
Copy link
Member

@michaelshobbs verify this and merge it please :)

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

Successfully merging this pull request may close these issues.

3 participants