Kouhei Sutou
null+****@clear*****
Wed Oct 22 15:39:27 JST 2014
Kouhei Sutou 2014-10-22 15:39:27 +0900 (Wed, 22 Oct 2014) New Revision: 76acb635d45ada0305153f1b53413e4f79d23a75 https://github.com/groonga/groonga-admin/commit/76acb635d45ada0305153f1b53413e4f79d23a75 Message: Use external Groonga server for /d URLs Modified files: Gruntfile.js package.json Modified: Gruntfile.js (+12 -1) =================================================================== --- Gruntfile.js 2014-10-21 18:49:12 +0900 (ddfb7eb) +++ Gruntfile.js 2014-10-22 15:39:27 +0900 (5d1e276) @@ -69,13 +69,23 @@ module.exports = function (grunt) { port: 9000, // Change this to '0.0.0.0' to access the server from outside. hostname: 'localhost', - livereload: 35729 + livereload: 35729, + }, + server: { + proxies: [ + { + context: '/d', + host: process.env.GROONGA_HOST || 'localhost', + port: 10041 + } + ] }, livereload: { options: { open: true, middleware: function (connect) { return [ + require('grunt-connect-proxy/lib/utils').proxyRequest, connect.static('.tmp'), connect().use( '/bower_components', @@ -396,6 +406,7 @@ module.exports = function (grunt) { grunt.task.run([ 'clean:server', 'wiredep', + 'configureProxies:server', 'concurrent:server', 'autoprefixer', 'connect:livereload', Modified: package.json (+1 -0) =================================================================== --- package.json 2014-10-21 18:49:12 +0900 (bc13a93) +++ package.json 2014-10-22 15:39:27 +0900 (9dea0d3) @@ -25,6 +25,7 @@ "grunt": "^0.4.1", "grunt-autoprefixer": "^0.7.3", "grunt-concurrent": "^0.5.0", + "grunt-connect-proxy": "^0.1.11", "grunt-contrib-clean": "^0.5.0", "grunt-contrib-compass": "^0.7.2", "grunt-contrib-concat": "^0.4.0", -------------- next part -------------- HTML����������������������������...Download