Created
August 25, 2014 12:57
-
-
Save james-huston/28172053a001508c4ae6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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