Erlang web shell
https://github.com/juise/sherly.git
sherly ======
Erlang web shell, inspired by erlwsh
Building
`` sh
$ git clone git@github.com:juise/sherly.git
$ cd sherly
$ make rel
%%CODEBLOCK0%% sh
$ cd rel/sherly
$ bin/sherly start
%%CODEBLOCK1%% sh
$ make run
%%CODEBLOCK2%% sh
$ cp -rvf rel/sherly /tmp/sherly
$ sed -i.bak "s/localhost:8080/example.com:80/g" /tmp/sherly/lib/sherly-1.0.0/priv/index.html
%%CODEBLOCK3%%
http {
...
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
...
server {
listen 80;
server_name example.com;
...
location /sherly {
alias /tmp/sherly/lib/sherly-1.0.0/priv/;
index index.html;
}
location /static/ {
root /tmp/sherly/lib/sherly-1.0.0/priv;
}
location /websocket {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
...
}
}
%%CODEBLOCK4%% sh
$ /tmp/sherly/bin/sherly start
``