summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2020-01-01 11:36:48 +0100
committertomsmeding <tom.smeding@gmail.com>2020-01-01 11:37:45 +0100
commit755ca86c546e179c17c23135df0961cd7619e549 (patch)
tree620a8d6a9b5915012f7c949009b598c86c024cf8 /server
parentd02c8ec19b3e09b7c11b8f7d95b9e691656f30b0 (diff)
server: Explicit persist directory
Diffstat (limited to 'server')
-rw-r--r--server/.gitignore1
-rwxr-xr-xserver/serverstore.js7
2 files changed, 7 insertions, 1 deletions
diff --git a/server/.gitignore b/server/.gitignore
new file mode 100644
index 0000000..51846b9
--- /dev/null
+++ b/server/.gitignore
@@ -0,0 +1 @@
+persist/
diff --git a/server/serverstore.js b/server/serverstore.js
index 3d1c401..e10ae9a 100755
--- a/server/serverstore.js
+++ b/server/serverstore.js
@@ -10,7 +10,12 @@ var fs=require("fs"),
var HOSTNAME="tomsmeding.com",HTTPPORT=42420;
-Persist.initSync({});
+Persist = Persist.create({
+ dir:__dirname+"/persist",
+ continuous:false,
+ interval:false
+});
+Persist.initSync();
var challenge=null;