saving Node.js-served wiki to Tiddlyspot directly

89 views
Skip to first unread message

Rustem

unread,
Apr 28, 2015, 10:11:23 PM4/28/15
to tiddl...@googlegroups.com
What would be the most direct way to upload my node.js-served wiki to Tiddlyspot? Do I need to save my wiki as a single file first, before I can successfully upload it to Tiddlyspot? Or can I somehow switch to the appropriate "saver" temporarily, just for the upload?

I tried to follow the instructions (http://tiddlywiki.com/#Saving%20on%20TiddlySpot) directly, nothing happens. It says "saving", but tiddlyspot remains unchanged, presenting a default TWC.

To be clear, I am not interested in any kind of back-and-forth synchronization. Strictly one-way publishing to TS. I'm happy maintaining the wiki using node.js.

Mat

unread,
Apr 29, 2015, 3:46:25 AM4/29/15
to tiddl...@googlegroups.com
I wish it were possible but AFAIK you can't host TWnode.js on tiddlyspot. For one thing, you cannot get a folder (for holding the TWnode.js files).


<:-)

PMario

unread,
Apr 29, 2015, 4:21:43 AM4/29/15
to tiddl...@googlegroups.com
Hi Rustem,


On Wednesday, April 29, 2015 at 4:11:23 AM UTC+2, Rustem wrote:
What would be the most direct way to upload my node.js-served wiki to Tiddlyspot?

As you found out. Direct save is not possible

If you served your TW from your nodejs installation you get it from http://localhost which is a domain. http://tiddlyspot.com is a different domain. .. So due to browser security restrictions, this isn't allowed.
 
Do I need to save my wiki as a single file first, before I can successfully upload it to Tiddlyspot? Or can I somehow switch to the appropriate "saver" temporarily, just for the upload?

IMO 2 possibilities:

 - You create a single file TW from your local copy. .. With nodejs. Just build it. It's relatively easy. ...
    - Then upload this file as described.

 - It would be also possible to create a tiddlers.json file that contains just your recent changes.
   - Serve your TW from tiddlyspot.com and import your tiddlers. .. If TW is served from tiddlyspot.com it can be saved back.
 
To be clear, I am not interested in any kind of back-and-forth synchronization. Strictly one-way publishing to TS. I'm happy maintaining the wiki using node.js.


If someone has better ideas. ... Just let us know :)

have fun!
mario

Jeremy Ruston

unread,
Apr 30, 2015, 11:26:54 AM4/30/15
to TiddlyWiki
Hi Rustem

> What would be the most direct way to upload my node.js-served wiki to Tiddlyspot? 

It's actually really easy: run your Node.js wiki in the usual way. Visit Control Panel "Saving" tab and enter your TiddlySpot "wiki name". When you want to save a snapshot to TiddlySpot just click the "save changes" button in the sidebar. A snapshot of the wiki (without the client-server plugins) will be saved to TiddlySpot. Tiddlers are still synced to the server in the usual way, too. I tested the procedure in Chrome; I'd expect Firefox to complain about the cross-origin form post (but there's probably a flag you can use to suppress that).

Best wishes

Jeremy




On Wed, Apr 29, 2015 at 9:21 AM, PMario <pmar...@gmail.com> wrote:
Hi Rustem,

On Wednesday, April 29, 2015 at 4:11:23 AM UTC+2, Rustem wrote:
What would be the most direct way to upload my node.js-served wiki to Tiddlyspot?

As you found out. Direct save is not possible

If you served your TW from your nodejs installation you get it from http://localhost which is a domain. http://tiddlyspot.com is a different domain. .. So due to browser security restrictions, this isn't allowed.
 
Do I need to save my wiki as a single file first, before I can successfully upload it to Tiddlyspot? Or can I somehow switch to the appropriate "saver" temporarily, just for the upload?

IMO 2 possibilities:

 - You create a single file TW from your local copy. .. With nodejs. Just build it. It's relatively easy. ...
    - Then upload this fire as described.

 - It would be also possible to create a tiddlers.json file that contains just your recent changes.
   - Serve your TW from tiddlyspot.com and import your tiddlers. .. If TW is served from tiddlyspot.com it can be saved back.
 
To be clear, I am not interested in any kind of back-and-forth synchronization. Strictly one-way publishing to TS. I'm happy maintaining the wiki using node.js.


If someone has better ideas. ... Just let us know :)

have fun!
mario

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dabd5eaa-13da-4210-8f1c-d6232b2e7179%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Rustem

unread,
Apr 30, 2015, 12:59:40 PM4/30/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Yes, it works! I was putting the full URL into the Wiki Name field, so it was failing silently. Some message would be helpful, like "Tiddlyspot wiki does not exist, check the name". When a password is wrong, the message is very clear.

thanks!

R.
Reply all
Reply to author
Forward
0 new messages