mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-14 06:56:50 -07:00
Update server config path
This commit is contained in:
parent
e0610bc1be
commit
814a49812a
2 changed files with 38 additions and 45 deletions
|
@ -8,7 +8,7 @@ var connect = require('connect');
|
|||
var DocumentHandler = require('./lib/document_handler');
|
||||
|
||||
// Load the configuration and set some defaults
|
||||
var config = JSON.parse(fs.readFileSync('config.js', 'utf8'));
|
||||
var config = JSON.parse(fs.readFileSync('./config.js', 'utf8'));
|
||||
config.port = config.port || 7777;
|
||||
config.host = config.host || 'localhost';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue