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

Conversation

@mloughran
Copy link

For example, if one wanted to store JSON in a config value (granted, not a great idea in general).

Setting {"foo":"bar"} via ssh -t ... config:set <app> TEST='{"foo":"bar"}' would result in the following (broken) line in ENV:

export TEST={"foo":"bar"}

With this pull request the value is strong quoted

export TEST='{"foo":"bar"}'

For comparison, double quotes in config values do work on Heroku.

/cc @mdpye, thanks for the digging!

Allows usage of double quotes and other special characters in config values.

Single quotes in values still won't work, but solving that would require complex escaping.
@ghost
Copy link

ghost commented Jan 3, 2014

Related to #345, there may be a higher level or more complete way to go about this (/cc @plietar)

@ghost
Copy link

ghost commented Jan 8, 2014

@mloughran Would you mind attacking this from a higher level so it would cover everything? #345 has some hints/tips in that regard

@mloughran
Copy link
Author

I haven't really got time to try implementing #345 I'm afraid. It certainly looks related, but I haven't investigated sufficiently to be sure that it's the correct approach either, and this works for me for now.

@myhro
Copy link

myhro commented Feb 23, 2014

Isn't this a valid workaround until someone solves #345 ?

@josegonzalez
Copy link
Member

I've tested this against latest master both within the server and via ssh and it seems to work now that #702 has been merged. Closing, but thanks for working on it!

dokku config:set node-js-sample HELLO='{"foo":"bar"}'
ssh -t dokku@dokku.me config:set node-js-sample HELLO='{"foo":"bar"}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants