diff --git a/.gitignore b/.gitignore index 309672b..7cddabd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ data/ node_modules/ access.log +screenlog.0 +config.json diff --git a/config.json b/config.json deleted file mode 100644 index 001d304..0000000 --- a/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "port": 8000 -} diff --git a/run.sh b/run.sh index 3c73a7d..867c711 100644 --- a/run.sh +++ b/run.sh @@ -1,2 +1,4 @@ -pkill node -node . +sudo kill `cat /tmp/server-main.pid` 2>/dev/null +sudo node . & + +echo $! >/tmp/server-main.pid diff --git a/www-root/index.html b/www-root/index.html index 19d9df9..cc7885e 100644 --- a/www-root/index.html +++ b/www-root/index.html @@ -6,7 +6,9 @@ + +