summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-01-31 18:15:02 -0200
committerdrebs <drebs@leap.se>2013-01-31 18:15:02 -0200
commit74372f4c613d22a094a91ba4a5e41b776c5a2867 (patch)
treed411b0b61de64e36cf1dfcaacfffa566d5ca9189 /server.py
parent193b018842bd1c9460e77363338f057fcb22a390 (diff)
Soledad server can store using CouchDB.
Diffstat (limited to 'server.py')
-rw-r--r--server.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/server.py b/server.py
index 708e2e8c..4fc97be5 100644
--- a/server.py
+++ b/server.py
@@ -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