1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
TiddlyWiki5/bin/serve.sh
Jermolene 50be85287b Extend serve.sh/cmd to pass host address
Useful to be able to do `./bin/serve.sh "" "" 0.0.0.0` to listen on all
network adaptors
2014-09-10 21:34:13 +01:00

12 lines
243 B
Bash
Executable File

#!/bin/bash
# serve TiddlyWiki5 over HTTP
# Optional parameter is the username for signing edits
node ./tiddlywiki.js \
editions/tw5.com-server \
--verbose \
--server 8080 $:/core/save/all text/plain text/html "$1" "$2" "$3"\
|| exit 1