I am following the instructions here
http://www.couchbase.org/get/couchbase-mobile-for-android/current
After I start an instance of Couchdb, how do I push a couchapp from my machine to the emulator ?
I am following the instructions here
http://www.couchbase.org/get/couchbase-mobile-for-android/current
After I start an instance of Couchdb, how do I push a couchapp from my machine to the emulator ?
I noticed your question is old, but hope this answer is still useful to you. Here's what I did.
First, setup port forwarding to your emulator.
adb forward tcp:5985 tcp:5984
This makes the CouchDB instance running on your Android emulator available on port 5985 of your host machine. Verify it works with:
$ curl localhost:5985
You should get a response with version you have installed on your emulator:
{"couchdb":"Welcome","version":"1.2.0a-7b47329-git"}
If you're using the CouchApp toolchain, you can push the app from your file system to your emulator like this:
couchapp push . http://localhost:5985/my-app
Alternatively, if the app is already installed (pushed) on your server (assuming server is your local host machine) you can issue a replicate command (HTTP POST) that looks similar to this:
$ curl -H 'Content-Type: application/json' -X POST http://localhost:5984/_replicate -d ' {"source": "http://localhost:5984/my-app", "target": "http://localhost:5985/my-app", "create_target": true, "continuous": true} '
That should do the trick. Let me know if you run into any troubles.