Skip to content

Instantly share code, notes, and snippets.

@james-huston
Created August 25, 2014 12:57
Show Gist options
  • Save james-huston/28172053a001508c4ae6 to your computer and use it in GitHub Desktop.
Save james-huston/28172053a001508c4ae6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# this needs to run inside of npm/npm-registry-couchapp
# https://github.com/npm/npm-registry-couchapp
HOST=http://localhost:5984
USER=npm
PASS=yourmomma
FULLHOST=http://$USER:$PASS@localhost:5984
# this doesn't quite work, setup your user in the web admin
#curl -X PUT $HOST/_config/admins/$USER -d '"$PASS"'
curl -X PUT $FULLHOST/registry
npm start --npm-registry-couchapp:couch=$FULLHOST/registry
npm run load --npm-registry-couchapp:couch=$FULLHOST/registry
npm run copy --npm-registry-couchapp:couch=$FULLHOST/registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment