Yoji SHIDARA
null+****@clear*****
Mon Oct 22 12:03:33 JST 2012
Yoji SHIDARA 2012-10-22 12:03:33 +0900 (Mon, 22 Oct 2012) New Revision: 1ec0ecba67bb742b5f10fdc0000dea580d18a016 https://github.com/groonga/gcs-console/commit/1ec0ecba67bb742b5f10fdc0000dea580d18a016 Log: Add bin/gcs-console script Added files: bin/gcs-console Modified files: app.js package.json Modified: app.js (+1 -4) =================================================================== --- app.js 2012-10-22 11:57:08 +0900 (4bbb886) +++ app.js 2012-10-22 12:03:33 +0900 (55500a0) @@ -43,7 +43,4 @@ app.get('/domain_create', routes.domainCreate); app.post('/domain_create', routes.domainCreatePost); app.delete('/domain/:name', routes.domainDelete); -http.createServer(app).listen(app.get('port'), function(){ - console.log("Groonga CloudSearch Console listening on port " + - app.get('port')); -}); +module.exports.app = app; Added: bin/gcs-console (+9 -0) 100755 =================================================================== --- /dev/null +++ bin/gcs-console 2012-10-22 12:03:33 +0900 (837fef9) @@ -0,0 +1,9 @@ +#!/usr/bin/env node + +var app = require(__dirname + '/../app').app; +var http = require('http'); + +http.createServer(app).listen(app.get('port'), function(){ + console.log("Groonga CloudSearch Console listening on port " + + app.get('port')); +}); Modified: package.json (+4 -1) =================================================================== --- package.json 2012-10-22 11:57:08 +0900 (5c35293) +++ package.json 2012-10-22 12:03:33 +0900 (f7aa47d) @@ -21,7 +21,10 @@ "connect-flash": "" }, "scripts": { - "start": "node app" + "start": "./bin/gcs-console" + }, + "bin": { + "gcs-console": "./bin/gcs-console" }, "engines": { "node": "~ 0.6.12" -------------- next part -------------- HTML����������������������������... Download