[Groonga-commit] droonga/droonga-http-server at 9bec0e1 [master] Expand path

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jul 4 20:11:44 JST 2014


YUKI Hiroshi	2014-07-04 20:11:44 +0900 (Fri, 04 Jul 2014)

  New Revision: 9bec0e1a1f0ca2fc4eb48d872edb6c13e00f6379
  https://github.com/droonga/droonga-http-server/commit/9bec0e1a1f0ca2fc4eb48d872edb6c13e00f6379

  Message:
    Expand path

  Modified files:
    bin/droonga-http-server

  Modified: bin/droonga-http-server (+2 -1)
===================================================================
--- bin/droonga-http-server    2014-07-04 19:12:50 +0900 (63d417e)
+++ bin/droonga-http-server    2014-07-04 20:11:44 +0900 (2504c8a)
@@ -2,6 +2,7 @@
 // -*- js -*-
 
 var fs = require('fs'),
+    path = require('path'),
     daemon = require('daemon'),
     winston = require('winston'),
     express = require('express'),
@@ -167,7 +168,7 @@ application.droonga({
   plugins: options.plugins
 });
 
-application.use('/groonga-admin', express.static(__dirname + '../public/groonga-admin'));
+application.use('/groonga-admin', express.static(path.normalize(__dirname + '/../public/groonga-admin')));
 
 server.listen(options.port);
 
-------------- next part --------------
HTML����������������������������...
Download 



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