diff --git a/tiddlywiki.js b/tiddlywiki.js index 3fc0c21cd..1e7302e0a 100644 --- a/tiddlywiki.js +++ b/tiddlywiki.js @@ -167,10 +167,7 @@ var commandLineSwitches = { // Dumbly, this implementation wastes the recipe processing that happened on the --recipe switch http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/html"}); - var store = new WikiStore(); - var recipe = new Recipe({store: store,filepath: lastRecipeFilepath},function() { - response.end(recipe.cook(), "utf8"); - }); + response.end(recipe.cook(), "utf8"); }).listen(port); } }, diff --git a/tw5s.sh b/tw5s.sh new file mode 100755 index 000000000..b4ec28e37 --- /dev/null +++ b/tw5s.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# serve TiddlyWiki5 over HTTP + +# cook TiddlyWiki5 +node tiddlywiki.js --recipe $PWD/tiddlywiki5/tiddlywiki5.recipe --servewiki 8080 || exit 1