diff options
author | drebs <drebs@leap.se> | 2013-01-31 18:15:02 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-01-31 18:15:02 -0200 |
commit | 74372f4c613d22a094a91ba4a5e41b776c5a2867 (patch) | |
tree | d411b0b61de64e36cf1dfcaacfffa566d5ca9189 /server.py | |
parent | 193b018842bd1c9460e77363338f057fcb22a390 (diff) |
Soledad server can store using CouchDB.
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -7,13 +7,11 @@ This should be run with: from twisted.web.wsgi import WSGIResource from twisted.internet import reactor +from u1db.remote import http_app +from leap.soledad.backends.couch import CouchServerState -from u1db.remote import ( - http_app, - server_state, -) - -state = server_state.ServerState() +couch_url = 'http://localhost:5984' +state = CouchServerState(couch_url) # TODO: change working dir to something meaningful state.set_workingdir('/tmp') # TODO: write a LeapHTTPApp that will use Couch as backend instead of SQLite |