saqimtiaz / TiddlyCouch

couchapp + TiddlyWiki plugins to serve a TiddlyWiki from CouchDB and read and write tiddlers to the database
19 stars 5 forks source link

Some issue with #1

Open UnclePhil opened 14 years ago

UnclePhil commented 14 years ago

Hi Saq, After a log time i came back to tiddlycouch It seems that in my local implementation, I had a problem to reach the server during tiddler save. With some "simple" modification in the couchdbconfig.js it work perfectly.

1) calculation of the host: host: window.location.protocol+"//"+window.location.host.replace(/\/$/, ""),

2) calculation of the workspace "server.workspace": window.location.pathname.split("/")[1],

This is maybe not the good way to do it, but it work.

The couchapp self can also be reduced here is the minimal structure for this application "lists/json.js", "lists/tiddlywiki.js", "templates/tiddlywiki/empty.html", "templates/tiddlywiki/tiddler.html", "vendor/couchapp/lib/mustache.js", "views/tiddlers/map.js" all the rest can be wiped without effect

FND commented 14 years ago

Thanks for the feedback - very useful indeed! (After all, this is still just a proof of concept.)

I currently don't have a CouchDD instance handy to test these modifications though. Would it be possible for you to submit a patch / pull request with these changes?