This should be possible, but you would need to write a quick app.js file.

Note that I haven't tested this, but I have done almost the same thing for 
the secure server setup I made.

Put the TiddlyWiki5 folder on your server, then your app.js file next to 
that folder. In the app.js file put:


$tw = require("./TiddlyWiki5/boot/boot.js").TiddlyWiki()
const args = ['/path/to/wiki', '--listen']
$tw.boot.argv = args
$tw.boot.boot()

then that should give you the same result as if you has terminal access and 
typed 

node ./TiddlyWiki5/tiddlywiki.js /path/to/wiki --listen

so change /path/to/wiki to the path to the wiki you want and if you want to 
pass any more arguments to the listen command add them to the args array in 
the order you want them.

Remember that unless you add the credentials argument this has no access 
controls unless your server provides them separately.

https://tiddlywiki.com/#ListenCommand

On Tuesday, January 26, 2021 at 10:33:52 PM UTC+1 Jan wrote:

> Hi,
> I would like to use a node installation of tw, but my internet-host does 
> not allow me to use the terminal.
> I only can upload files via ftp and point node.js to an app.js
> Are there any implementations for such a scenario?
>
> Best wishes
> Jan
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/53636f7e-b79a-48dd-864d-63d17539b115n%40googlegroups.com.

Reply via email to