Settings

Theme

Redbean – Single-file distributable web server (with embedded Lua and SQLite)

justine.lol

55 points by sylvain_kerkour 2 years ago · 12 comments

Reader

widdershins 2 years ago

I made the website for my wedding with Redbean, just for a bit of fun. It was a delightful experience. Deployment was just: upload one file, restart a process. I developed on my Mac, and deployed the executable, unchanged, to a Linux server. It just worked. Nice.

ollybee 2 years ago

In case it's not clear it's the same single file that runs on all supported operating systems. One file, run anywhere.

handyj 2 years ago

Love this software.

Can't say I understand how it works in depth but as something to tinker with it's amazing. So clever.

imtringued 2 years ago

I can already imagine people telling you to install certbot and putting Apache in front of this...

JodieBenitez 2 years ago

Not to be confused with https://www.redbeanphp.com/

sgammon 2 years ago

Redbean is awesome

  • sgammon 2 years ago

    But then again, so is everything Justine builds.

  • bomewish 2 years ago

    Some examples of deployment in the wild would have helped?

    • ihateolives 2 years ago

      Yep, for some reason my imagination is just not kicking in here. What can I do with embedded Lua in backend? I'm not familiar with Lua at all so I have no idea.

      • sgammon 2 years ago

        Well, couldn't the same question be asked about using Python or Ruby within a server? It's scriptable, easier and faster to iterate with. Dynamic. You can execute Lua scripts in Redis. LuaJIT and other implementations can be incredibly fast and pretty fun to code in.

      • rlawson 2 years ago

        You can use the excellent fullmoon framework that takes care of a lot for you

        https://github.com/pkulchenko/fullmoon

        Then using lua is not much different than python/flask

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection