run server with vanilla redbean to prevent loading iso in xrsh.com
This commit is contained in:
parent
277bc79e78
commit
c17c2e4808
1 changed files with 3 additions and 2 deletions
5
make
5
make
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue