run server with vanilla redbean to prevent loading iso in xrsh.com

This commit is contained in:
Leon van Kammen 2025-06-24 12:47:56 +02:00
parent 277bc79e78
commit c17c2e4808

5
make
View file

@ -80,9 +80,10 @@ standalone(){ # build standalone xrsh.com binary
dev(){ # start dev http server
set -x
cd "$DIR"
test -f xrsh.com || standalone
wget "$REDBEAN_VERSION" -O /tmp/server.com
chmod +x /tmp/server.com
test -f /tmp/cert.pem || openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout /tmp/key.pem -out /tmp/cert.pem
./xrsh.com -c 0 -C /tmp/cert.pem -K /tmp/key.pem -D . "$@"
/tmp/server.com -c 0 -C /tmp/cert.pem -K /tmp/key.pem -D . "$@"
}
shell(){ # run xrsh shell via docker