Add option to Gruntfile.js to specify server port
This commit is contained in:
parent
79340908f4
commit
b8efad0b27
|
@ -1,6 +1,6 @@
|
|||
/* global module:false */
|
||||
module.exports = function(grunt) {
|
||||
|
||||
var port = grunt.option('port') || 8000;
|
||||
// Project configuration
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
@ -78,7 +78,7 @@ module.exports = function(grunt) {
|
|||
connect: {
|
||||
server: {
|
||||
options: {
|
||||
port: 8000,
|
||||
port: port,
|
||||
base: '.'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue