Skip to content

Instantly share code, notes, and snippets.

@ryanand26
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanand26/a6306ae7327b9c926d6d to your computer and use it in GitHub Desktop.
Save ryanand26/a6306ae7327b9c926d6d to your computer and use it in GitHub Desktop.
Grunt - Express server definition
module.exports = function(grunt) {
var path = require('path');
grunt.initConfig({
//...
express : {
options : {
port : 80,
hostname : '*',
server : path.resolve(__dirname, 'server.js')
},
target : {}
}
//...
});
grunt.loadNpmTasks('grunt-express');
grunt.registerTask('serve', ['express', 'express-keepalive']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment