jo / grunt-couch

Build and publish Couchapps and CouchDB design documents with grunt. Simple.
MIT License
48 stars 19 forks source link

couch-configure task stringifies the config value #33

Open mcrummey opened 8 years ago

mcrummey commented 8 years ago

CouchDb does not support stringified JSON in the httpd rewrites section.

_google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>}

works, but

_google = "{couch_httpd_proxy, handle_proxy_req, <</"http://www.google.com/">>}"

does not.

grunt-couch should not stringify the value automatically, the user can use a string value if they wish.

mcrummey commented 8 years ago

I put the fix in in PR 34. https://github.com/jo/grunt-couch/pull/34