TiddlyCouch icon indicating copy to clipboard operation
TiddlyCouch copied to clipboard

Some issue with

Open UnclePhil opened this issue 14 years ago • 1 comments

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

UnclePhil avatar Nov 07 '10 19:11 UnclePhil

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?

FND avatar Nov 07 '10 20:11 FND