commit | e4c4e755f30e109b4f6efa6cc845a6a1ad5bebac | [log] [tgz] |
---|---|---|
author | Steven Gill <stevengill97@gmail.com> | Thu Jan 09 17:11:10 2014 -0800 |
committer | Steven Gill <stevengill97@gmail.com> | Thu Jan 09 17:11:10 2014 -0800 |
tree | edf38a34a780aeb6a7db5b49773c22dcbc64d0bd | |
parent | 5b22daee170ab98d951e33dc0bcf59534fc7fa97 [diff] |
added a basic readme
Install COUCHDB
brew install couchdb
create registry database in couch curl -X PUT http://localhost:5984/registry
npmjs git clone https://github.com/imhotep/npmjs.org
cordova registry web git clone https://git-wip-us.apache.org/repos/asf/cordova-registry-web.git
cd npmjs npm install -g couchapp npm install couchapp npm install semver
couchapp push registry/app.js http://localhost:5984/registry
cd ../cordova-registry-web couchapp push app.js http://localhost:5984/registry
Pretty much all of the work you need to do is in cordova-registry-web
Enter this into your terminal because legacy. curl http://localhost:5984/registry/_design/scratch -X COPY -H destination:‘_design/app’
cd /etc/apache2/users sudo vim YOURCOMPUTERUSERNAME.conf (mine was stevengill.conf)
Paste the following rewrite rules into it.
<VirtualHost *:80> ServerName localhost RewriteEngine on
RewriteRule ^/((?!downloads).)$ /registry/_design/ui/_rewrite/$1 [PT] ProxyPassMatch ^/downloads/(.)$ http://cordova.iriscouch.com/downloads/$1 ProxyPassMatch ^/registry/(.*)$ http://localhost:5984/registry/$1 RewriteLog “/var/log/apache2/plugins.cordova.io-rewrite.log” RewriteLogLevel 3 LogLevel debug ErrorLog “/var/log/apache2/plugins.cordova.io-error_log” CustomLog “/var/log/apache2/plugins.cordova.io-access_log” common
back to terminal, start apache with: sudo apachectl start
go to localhost in your browser and bam! should be working.
plugman config set registry http://localhost:5984/registry/_design/app/_rewrite
##Potential Errors
If you keep seeing POST /_session 401
when you try to publish a plugin locally, you need to go delete your user info. In terminal type rm -rf ~/.plugman
. Then go to the plugin you want to add and go plugman adduser
. Enter in your username, password and email.