[Groonga-commit] groonga/gcs-console [master] Now gcs console prot is configurable

Back to archive index

Yoji SHIDARA null+****@clear*****
Wed Oct 24 17:50:14 JST 2012


Yoji SHIDARA	2012-10-24 17:50:14 +0900 (Wed, 24 Oct 2012)

  New Revision: cee3e1bd9df0c931e274dae33349855746b5c3f7
  https://github.com/groonga/gcs-console/commit/cee3e1bd9df0c931e274dae33349855746b5c3f7

  Log:
    Now gcs console prot is configurable

  Modified files:
    bin/gcs-console
    npm-shrinkwrap.json
    package.json

  Modified: bin/gcs-console (+7 -0)
===================================================================
--- bin/gcs-console    2012-10-24 16:55:26 +0900 (837fef9)
+++ bin/gcs-console    2012-10-24 17:50:14 +0900 (da79fef)
@@ -2,6 +2,13 @@
 
 var app = require(__dirname + '/../app').app;
 var http = require('http');
+var program = require('commander');
+
+program
+  .option('-p, --port [port]', 'Port')
+  .parse(process.argv);
+
+if (program.port) app.set('port', program.port);
 
 http.createServer(app).listen(app.get('port'), function(){
   console.log("Groonga CloudSearch Console listening on port " +

  Modified: npm-shrinkwrap.json (+8 -0)
===================================================================
--- npm-shrinkwrap.json    2012-10-24 16:55:26 +0900 (e357f91)
+++ npm-shrinkwrap.json    2012-10-24 17:50:14 +0900 (7cb0af0)
@@ -130,6 +130,14 @@
         }
       }
     },
+    "commander": {
+      "version": "1.0.5",
+      "dependencies": {
+        "keypress": {
+          "version": "0.1.0"
+        }
+      }
+    },
     "chai": {
       "version": "1.3.0"
     },

  Modified: package.json (+2 -1)
===================================================================
--- package.json    2012-10-24 16:55:26 +0900 (cdcb018)
+++ package.json    2012-10-24 17:50:14 +0900 (5aa5c94)
@@ -25,7 +25,8 @@
     "underscore": "",
     "connect-flash": "",
     "mkdirp": "",
-    "rimraf": ""
+    "rimraf": "",
+    "commander": ""
   },
   "scripts": {
     "test": "NODE_ENV=test ./node_modules/.bin/mocha --reporter list --ui tdd",
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index