Giter Club home page Giter Club logo

tiddly-bean's Introduction

tiddly-bean

Experiments with a redbean TiddlyWiki server


These files build a server for single-file Tiddlywiki.

Type build or make dist to create the wiki.com executable.

Running wiki.com starts the server and opens your default browser to your wiki.

On Linux and Macs, the wiki is embeded in the executable - so a self-contained wiki with server.

On Windows, the embeded wiki file is first written to disc as wiki.html, and is saved back to disk. This is because redbean does not currently support updating the wiki file inside the executable on Windows.

To use an existing tiddlywiki, replace the wiki.html file in the executable using the zip utility.

  • First copy the exsiting wiki to wiki.html
  • Then enter on the command line: zip wiki.com wiki.html

Credits to Rick Dillon for the original server script, and coderofsalvation for his server implementation.

tiddly-bean's People

Contributors

amreus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tiddly-bean's Issues

Error saving wiki

Hi! I just stumbled across this project (and TiddlyWiki, actually), but I'm having problems saving the wiki.html with redbean 5c358635 (the current master).

On the output I get the following whenever the wiki tries to autosave or I hit the save button:

I2023-12-28T00:51:13.315997:tool/net/redbean.c:6005:wiki:1783543] (req) received 127.0.0.1:50158 HTTP11 PUT http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
I2023-12-28T00:51:13+000899:tool/net/redbean.c:3637:wiki:1783543] (srvr) storing asset "wiki.html"
W2023-12-28T00:51:13+032388:tool/net/redbean.c:3664:wiki:1783543] (srvr) can't place write lock on file descriptor 3: Bad file number
I2023-12-28T00:51:13+010591:tool/net/redbean.c:6005:wiki:1783543] (req) received 127.0.0.1:50158 HTTP11 HEAD http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
I2023-12-28T00:51:23.262791:tool/net/redbean.c:6005:wiki:1783560] (req) received 127.0.0.1:37938 HTTP11 PUT http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
I2023-12-28T00:51:23+000855:tool/net/redbean.c:3637:wiki:1783560] (srvr) storing asset "wiki.html"
W2023-12-28T00:51:23+029719:tool/net/redbean.c:3664:wiki:1783560] (srvr) can't place write lock on file descriptor 3: Bad file number
I2023-12-28T00:51:23+010287:tool/net/redbean.c:6005:wiki:1783560] (req) received 127.0.0.1:37938 HTTP11 HEAD http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"

And, sure enough, when I reload the page the changes I've made are gone.

Do you happen to have any ideas about why this might be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.