aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js2
-rwxr-xr-xbin/luxcena-neo.sh7
-rwxr-xr-xbin/runDev.sh2
-rw-r--r--package.json3
4 files changed, 10 insertions, 4 deletions
diff --git a/app.js b/app.js
index 406ecbd..50eb1bd 100644
--- a/app.js
+++ b/app.js
@@ -9,7 +9,7 @@ let io = require("socket.io").listen(server);
let srcDir = __dirname;
let installDir = "/home/pi/luxcena-neo-install/"
if (process.argv.length >= 3) { installDir = process.argv[2]; }
-let dataDir = installDir + "/usrData/";
+let dataDir = installDir + "/userdata/";
if (!fse.existsSync(dataDir)) { throw new Error("APPDIR not found! Exiting..."); }
// Secondly we setup the logger, and the global access to "runtimeData"; a jSON-file containing some runtimeData
diff --git a/bin/luxcena-neo.sh b/bin/luxcena-neo.sh
index 4467d06..9bcf125 100755
--- a/bin/luxcena-neo.sh
+++ b/bin/luxcena-neo.sh
@@ -1,3 +1,8 @@
#!/bin/bash
-runuser -l pi -c "export NODE_ENV=production; node ~/luxcena-neo-install/src/app.js"
+# We want to eventually run the server as another user than root. But right now,
+# the python script needs to be run as root, and since the server is starting them
+# the server needs root as well.
+
+#runuser -l pi -c "export NODE_ENV=production; node ~/luxcena-neo-install/src/app.js"
+export NODE_ENV=production; node /home/pi/luxcena-neo-install/src/app.js
diff --git a/bin/runDev.sh b/bin/runDev.sh
index 568f00f..e0e70bc 100755
--- a/bin/runDev.sh
+++ b/bin/runDev.sh
@@ -6,7 +6,7 @@ if [ "$#" -gt "1" ]; then
node app.js $1
else
mkdir -p tmp
- mkdir -p tmp/usrData
+ mkdir -p tmp/userdata
mkdir -p tmp/logs
node app.js "$PWD/tmp/"
fi
diff --git a/package.json b/package.json
index 5993add..3946377 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
"express": "^4.16.3",
"fs-extra": "^7.0.0",
"request": "^2.88.0",
- "socket.io": "^2.1.1"
+ "socket.io": "^2.1.1",
+ "monaco-editor": "^0.14.3"
},
"scripts": {
"start": "node app.js",