summaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
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