Add web console handling

This commit is contained in:
mathiascode 2019-09-21 06:48:33 +03:00
parent 71e3071669
commit 7ada17972e
3 changed files with 8 additions and 1 deletions

View file

@ -2,5 +2,5 @@
cat <<EOF
---
default_process_types:
worker: script/start
web: script/start
EOF

View file

@ -14,6 +14,7 @@ git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/
while true; do
tmux new -d -s server 'sh -x script/server'
tmux new -d -s remote 'sh -x script/remote'
tmux new -d -s server 'sh -x script/webconsole'
tmux new -d -s schematics 'sh -x script/schematics'
sleep 5
done &

6
script/webconsole Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
cd $HOME/plugins/WebConsole/client/
while true; do
python3 -m http.server $PORT
sleep 1
done