ermouth / couch-photon

An alternative CouchDB admin panel
MIT License
87 stars 12 forks source link

Installation for CouchDB 3.1+ on Mac #41

Closed nkev closed 1 year ago

nkev commented 1 year ago

In case it helps others, I modified the original For CouchDB 3.1+ script in the Readme to work on Macs:

params="-H Content-Type:application/json"; \ 
couch="http://USER:PASSWORD@127.0.0.1:5984"; \ 
curl $params -X PUT $couch/photon; curl https://raw.githubusercontent.com/ermouth/couch-photon/master/photon.json | \
curl $params -X PUT $couch/photon/_design/photon -d @- ; curl $params -X PUT $couch/photon/_security -d '{}' ; \
curl $params -X PUT $couch/_node/_local/_config/csp/attachments_enable -d '"false"' ; \
curl $params -X PUT $couch/_node/_local/_config/chttpd_auth/same_site -d '"lax"' ; \
couch=''; params='';
ermouth commented 1 year ago

How is it different from the README snippet? Looks like your code does exactly same.

nkev commented 1 year ago

Combining $params and $couch does not work on a Mac (zsh).