- Clone repo
- Examine the makefile - it has multiple targets to make your life easier
- I assume your system has zip/unzip installed and available at the command line
- The makefile will download a redbean executable from redbean.dev and then zip the contents of /srv into it
make start
Makefile:
- Downloads nightly build of Redbean. If you like to compile Redbean yourself, see build info at https://redbean.dev and source code at https://github.com/jart/cosmopolitan
- Adds all files from
srv
directory to .zip file, that is added to end ofredbean.com
executeable, producing one finalwekan.com
executeable - That same
wekan.com
executeable works at Windows/Mac/Linux/BSD x86_64/arm64, using cross-platform tech from https://github.com/jart/cosmopolitan . There is no need for separate executeable for each CPU/OS. - When started, if SQLite3 database
wekan.db
does not exist at same directory aswekan.com
, it will be created. - For s390x, RISC-V etc, you can compile and run with blink https://github.com/jart/blink , like
blink wekan.com
.
Port defaults to 8000 and is sepecified at the bottom of file https://github.com/wekan/wekanstudio/blob/main/srv/.lua/routelib.lua
- It is only needed to distribute
wekan.com
executeable that was created with above commandmake start
- When started, if SQLite3 database
wekan.db
does not exist at same directory aswekan.com
, it will be created. - If you would like to have some obfuscation for your code, you can use
luac
to compile your.lua
files to bytecode. See examples at demo of https://redbean.dev
make start-daemon
In this mode a redbean.pid file will be created and all logs will go to redbean.log
To stop the daemon use
make stop-daemon
- You may need to manually remove redbean.pid if the process crashes or you otherwise stop the redbean process without called stop-daemon
The make file is a lightly modified version copied from https://github.com/ProducerMatt/redbean-template
- On linux you should be able to run
sh reload.sh
to hot reload as you develop - You need inotify-tools installed
- As you develop tail -f redbean.log to look for issues
reload.sh credit to -> https://www.baeldung.com/linux/monitor-changes-directory-tree