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.
This commit is contained in:
Alexander Horner 2018-04-24 07:23:38 +01:00 committed by GitHub
parent faa7e679ca
commit 72315ef86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -33,10 +33,8 @@
},
"storage": {
"type": "memcached",
"host": "127.0.0.1",
"port": 11211,
"expire": 2592000
"path": "./data",
"type": "file"
},
"documents": {