- Edit /etc/couchdb/local.ini
- Restart CouchDB (comment with ; the last line until rest of config is done)
Use "Create Database" link on http://REMOTE:5900/_utils to add cc_sms
DB.
aptitude install python-couchdb python-cherrypy
git clone git://github.com/mvpdev/smpp2local.git smpp2local
- Edit
local_config.py
and override server config.
ln -s /var/lib/couchdb/smpp2local/cleanup_obsolete.py /etc/cron.daily/
- Edit /etc/couchdb/local.ini
- Restart CouchDB
Use "Create Database" link on http://localhost:5900/_utils to add cc_sms
DB.
curl -X POST http://localhost:5900/_replicate -d '{"source":"http://REMOTE:5900/cc_sms", "target":"cc_sms", "continuous":true}'
curl -X POST http://localhost:5900/_replicate -d '{"source":"cc_sms", "target":"http://REMOTE:5900/cc_sms", "continuous":true}'
WARNING: continuous replication is not stored after CouchDB restart on CouchDB 0.10.
curl -X PUT http://localhost:5900/cc_sms/bloup -d '{"title":"Hello, I am from the ground"}'
curl -X PUT http://REMOTE:5900/cc_sms/bloup -d '{"title":"Do not panic, I am from the Internet"}'
Using the "Temporary View" link on http://localhost:5900/_utils, create two different views and save them as permanent:
- cc/kannel
- cc/rapidsms
- cc/processed
Reproduce on the remote server.