Run a connect server, indefinitely.
Run a connect server, indefinitely. The built in Grunt server task is terrific for the great majority of cases, however sometimes you just want to ability to run a web server on a local file system and interact with the files using a web browser.
Install this grunt plugin next to your project's grunt.js gruntfile with:
npm install grunt-connect
Then add this line to your project's
Content of directories is listed. In case multiple bases, it lists only files from first base with given directory (directory contents are not combined).
Since, these tasks are essentially asynchronous tasks that don't close. It's best to target them directly. For example, given the following configuration:
gruntinitConfigconnect:example:port: 1337base: 'example'meta:port: 1338base: 'tasks'combined:port: 1339combine:'example''tasks';
One might target the meta server using
Copyright (c) 2012 Merrick Christensen Licensed under the MIT license.