From e14a112fb6eb4131f5ac8c1721480706f37da5f9 Mon Sep 17 00:00:00 2001 From: stsdc Date: Thu, 16 Aug 2018 20:19:02 +0200 Subject: [PATCH] start server at reload --- client/src/js/app.js | 11 ++++++++++- package.json | 2 +- server/version.py | 2 +- utils/make_deb.sh | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/client/src/js/app.js b/client/src/js/app.js index 806bf0b..40d9fc7 100644 --- a/client/src/js/app.js +++ b/client/src/js/app.js @@ -8,6 +8,8 @@ import core from './core' const wiredActions = hyperlog(app)(state, actions, view, document.body); +startServer(); + document.onreadystatechange = function() { if (document.readyState === "complete") { wiredActions.restoreState(); @@ -21,4 +23,11 @@ core(wiredActions); // This disables bouncing in iOS // https://bugs.webkit.org/show_bug.cgi?id=182521 // https://stackoverflow.com/a/50856621/1589989 -window.addEventListener("touchmove", (event) => event.preventDefault(), {passive: false} ); \ No newline at end of file +window.addEventListener("touchmove", (event) => event.preventDefault(), {passive: false} ); + + +function startServer() { + var xmlhttp = new XMLHttpRequest(); + xmlhttp.open("GET", "../../server/starter.php"); + xmlhttp.send(); +} \ No newline at end of file diff --git a/package.json b/package.json index 0b92b17..804dd50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tcs", - "version": "0.12.2", + "version": "0.12.3", "description": "Turtle Control Software", "main": "index.js", "scripts": { diff --git a/server/version.py b/server/version.py index 0a8e35a..04f79d7 100644 --- a/server/version.py +++ b/server/version.py @@ -1,2 +1,2 @@ -version = (0, 12, 2) +version = (0, 12, 3) version_info = '.'.join(str(c) for c in version) diff --git a/utils/make_deb.sh b/utils/make_deb.sh index 9f5e94b..e6bc9b2 100755 --- a/utils/make_deb.sh +++ b/utils/make_deb.sh @@ -9,7 +9,7 @@ fpm --input-type dir \ --vendor "Kell ideas Ltd." \ --license "MIT" \ --url "https://github.com/TurtleRover/tcs" \ - --version "0.12.2" \ + --version "0.12.3" \ --iteration 7 \ --architecture all \ --deb-no-default-config-files \