module.exports = function(grunt) { // Project configuration. grunt.initConfig({ server: { port: 8888, base: \'.\' } }); }; C:\\P
In grunt 0.4 combined with grunt-contrib-connect you can run a long running server by using the keepalive argument: grunt connect:target:keepalive or define it as an option in your config:
keepalive
grunt connect:target:keepalive
grunt.initConfig({ connect: { target:{ options: { port: 9001, keepalive: true } } } });