From 72315ef86c5d72055fa5cbb1447dcf0051f471dc Mon Sep 17 00:00:00 2001 From: Alexander Horner <33007665+alexhorner@users.noreply.github.com> Date: Tue, 24 Apr 2018 07:23:38 +0100 Subject: [PATCH] Made config.js config.json and updated default storage mode Renamed the configuration file to be a JSON rather than a JS so that multi-file editors such as Visual Studio Code and Notepad++ which rely on the file type for syntax highlighting and correction work properly. Also changed the default storage method in the config to be file based storage, as to match the README.md in the repo root defining it as default, and to allow haste-server to work immediately out of the box rather than crashing about memcached not existing, and simply not working once this has been installed but a memcached server is not running. --- config.js => config.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename config.js => config.json (84%) diff --git a/config.js b/config.json similarity index 84% rename from config.js rename to config.json index 4b33e28..ed109cc 100644 --- a/config.js +++ b/config.json @@ -33,10 +33,8 @@ }, "storage": { - "type": "memcached", - "host": "127.0.0.1", - "port": 11211, - "expire": 2592000 + "path": "./data", + "type": "file" }, "documents": {