mirror of
https://github.com/seejohnrun/haste-server
synced 2025-07-16 10:03:45 -07:00
Added RethinkDB storage option & fixed config to use proper JSON
This commit is contained in:
parent
cfef588283
commit
ba5c6b8d16
5 changed files with 99 additions and 49 deletions
|
@ -11,7 +11,7 @@ var connect_rate_limit = require('connect-ratelimit');
|
|||
var DocumentHandler = require('./lib/document_handler');
|
||||
|
||||
// Load the configuration and set some defaults
|
||||
var config = JSON.parse(fs.readFileSync('./config.js', 'utf8'));
|
||||
var config = require('./config.json');
|
||||
config.port = process.env.PORT || config.port || 7777;
|
||||
config.host = process.env.HOST || config.host || 'localhost';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue