Problems using TiddlyWiki on node.js on a Synology Diskstation.

450 views
Skip to first unread message

Richard Evans

unread,
Jul 28, 2015, 8:48:55 AM7/28/15
to TiddlyWiki
Hi,

I am experimenting with Tiddlywiki on node.js. I have installed node.js on my Synology Diskstaion 212j. Everything seems to be correct. The version number is returned correctly and setting up the server seems to have worked. As least, it says it is serving on 127.0.0.1:8080. The only thing is that it hasn't returned to the prompt. I assume that is because the server is running.

But when I try and access the server on Synology's IP address port 8080, I get 'Unable to connect'. The synology is not busy, it's CPU is running at between 50-60%. The network connection is fine and the firewall is not impeding Firefox.

What am I doing wrong?

Matthew DeAbreu

unread,
Jul 28, 2015, 12:11:33 PM7/28/15
to tiddl...@googlegroups.com, ric8...@gmail.com
When you run the server you will not be returned to the prompt, if this is a problem you can use the program screen to put it in the background or at the end of the command you are running to start the server put a "&" to start it in the background.

For example:
tiddlywiki . --server &


Speaking of commands, what command are you using to start the server? By default the server will only allow the localhost (connections from the machine running the server) to connect to it. If you want any machine on your network to be able to connect to the server you will have to tell it to listen on all interfaces by using the following command:
tiddlywiki . --server 8080 $:/core/save/all text/plain text/html "" "" 0.0.0.0


This will start the TiddlyWiki NodeJS server in the current directory, on port 8080, will display all tiddlers, ..., ..., will not need a username, nor a password, and will listen for connections on all interfaces.

You can read more about the server command here: http://tiddlywiki.com/#ServerCommand

Richard Evans

unread,
Jul 29, 2015, 1:00:36 AM7/29/15
to TiddlyWiki, Matthew...@gmail.com
Thanks for the quick response, my intention was to experiment with using node.js to host the tiddlywiki and thus be able to access from a variety of devices. But if therre is no encryption, I guess that is not a good idea. I shall investigate the ServerCommand information you recommended, b ut it doesn't look as if node.js provided what I want.

    CIao Ric

PMario

unread,
Jul 29, 2015, 2:35:22 AM7/29/15
to tiddl...@googlegroups.com, Matthew...@gmail.com, ric8...@gmail.com
The following commands should give you some help info:


node .\tiddlywiki.js --help
node .\tiddlywiki.js --help init
node .\tiddlywiki.js --help server

or if you installed TW with npm


tiddlywiki --help
tiddlywiki --help init
tiddlywiki --help server

also see: http://tiddlywiki.com/#Commands

have fun!
mario
Reply all
Reply to author
Forward
0 new messages