Add standalone run.sh and configure localhost

This commit is contained in:
Norbert Renner 2019-12-30 20:52:55 +01:00
parent 5cc99949fd
commit 12c58b70fa
4 changed files with 24 additions and 3 deletions

View file

@ -0,0 +1,15 @@
#!/bin/sh
cd "$(dirname "$0")"
# start script for standalone zip
# start BRouter server on localhost
x-terminal-emulator -T "BRouter server" -e "./standalone/local.sh"
# start HTTP server for current directory (for brouter-web and profiles)
#x-terminal-emulator -T "BRouter-Web HTTP server" -e "python -m SimpleHTTPServer 8000"
x-terminal-emulator -T "BRouter-Web HTTP server" -e "python3 -m http.server 8000 --bind localhost"
# open BRouter-Web in default browser
xdg-open http://localhost:8000/brouter-web/

View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore