Update server config path
This commit is contained in:
parent
e0610bc1be
commit
814a49812a
2 changed files with 38 additions and 45 deletions
29
package.json
29
package.json
|
@ -1,52 +1,45 @@
|
|||
{
|
||||
|
||||
"name": "haste",
|
||||
"version": "0.0.1",
|
||||
|
||||
"private": true,
|
||||
|
||||
"description": "Private Pastebin Server",
|
||||
|
||||
"keywords": [ "paste", "pastebin" ],
|
||||
|
||||
"keywords": [
|
||||
"paste",
|
||||
"pastebin"
|
||||
],
|
||||
"author": {
|
||||
"name": "John Crepezzi",
|
||||
"email": "john.crepezzi@gmail.com",
|
||||
"url": "http://seejohncode.com/"
|
||||
},
|
||||
|
||||
"main": "haste",
|
||||
|
||||
"dependencies": {
|
||||
"winston": "*",
|
||||
"connect": "< 2",
|
||||
"uglify-js": "*"
|
||||
},
|
||||
|
||||
"devDependencies": {
|
||||
"mocha": "*",
|
||||
"should": "*"
|
||||
},
|
||||
|
||||
"bundledDependencies": [],
|
||||
|
||||
"engines": {
|
||||
"node": "*"
|
||||
},
|
||||
|
||||
"bin": {
|
||||
"haste-server": "./server.js"
|
||||
},
|
||||
|
||||
"files": [ "server.js", "lib", "static" ],
|
||||
|
||||
"files": [
|
||||
"server.js",
|
||||
"lib",
|
||||
"static"
|
||||
],
|
||||
"directories": {
|
||||
"lib": "./lib"
|
||||
},
|
||||
|
||||
"scripts": {
|
||||
"start": "node server.js",
|
||||
"test": "mocha -r should spec/*"
|
||||
}
|
||||
|
||||
},
|
||||
"subdomain": "hastebin"
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue