How can we map paths with node.js connect -
How can we decide on another path by using MIDWAR connectivity to nodes?
For example, is requested, then I want to reply to my server with I have a stupid method, but this is a method! Copy Just copy your file and create another mount folder! fileB .
fileA (inside of
grunt-Contrib-connect )
: {"mount-server": {files: [[expand: true, dot: true, cwd: '& lt;% = yeoman.app% & gt; , Dest: './.mount-server/search/mobileqq/', src: ['** / **']}]}} Connect: {option: {port: 80, // it '0.0.0.0 Change the host name to use the server from: null}, livereload: {options: {middleware: function (connect, option) {returns [lrSnippet, mountfolder (connect, '.tmp'), mountfolder , "./mount-server /"]]; }}}} Grunt.registerTask ('readyServer', ["clean: mount-server", "copy: mount-server"]); Grunt.registerTask ('server', function (target) {if (target === 'dist') {return grunt.task.run (['build', 'open', 'connect: dist: keepalive']); } Grunt.task.run (['Concurrent: Server', 'Prepare Server', 'Connect: LiveLoad', 'Open: Server', 'Watch']););
Comments
Post a Comment