From 814a49812a582588365350a7848e02d8fefa3867 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Wed, 19 Sep 2012 14:28:52 -0400 Subject: [PATCH] Update server config path --- package.json | 81 ++++++++++++++++++++++++---------------------------- server.js | 2 +- 2 files changed, 38 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index 766e32e..6903c53 100644 --- a/package.json +++ b/package.json @@ -1,52 +1,45 @@ { - - "name": "haste", - "version": "0.0.1", - - "private": true, - - "description": "Private Pastebin Server", - - "keywords": [ "paste", "pastebin" ], - - "author": { - "name": "John Crepezzi", - "email": "john.crepezzi@gmail.com", - "url": "http://seejohncode.com/" - }, - - "main": "haste", - - "dependencies": { - "winston": "*", + "name": "haste", + "version": "0.0.1", + "private": true, + "description": "Private Pastebin Server", + "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": { + }, + "devDependencies": { "mocha": "*", "should": "*" }, - - "bundledDependencies": [], - - "engines": { - "node": "*" - }, - - "bin": { - "haste-server": "./server.js" - }, - - "files": [ "server.js", "lib", "static" ], - - "directories": { - "lib": "./lib" - }, - - "scripts": { - "start": "node server.js", + "bundledDependencies": [], + "engines": { + "node": "*" + }, + "bin": { + "haste-server": "./server.js" + }, + "files": [ + "server.js", + "lib", + "static" + ], + "directories": { + "lib": "./lib" + }, + "scripts": { + "start": "node server.js", "test": "mocha -r should spec/*" - } - + }, + "subdomain": "hastebin" } diff --git a/server.js b/server.js index 44963e0..e40fc2f 100644 --- a/server.js +++ b/server.js @@ -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';