From 755ca86c546e179c17c23135df0961cd7619e549 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 1 Jan 2020 11:36:48 +0100 Subject: server: Explicit persist directory --- server/.gitignore | 1 + server/serverstore.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 server/.gitignore (limited to 'server') 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; -- cgit v1.2.3-70-g09d2