Skip to content

Commit

Permalink
Add option to Gruntfile.js to specify server port
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshu committed Sep 11, 2013
1 parent 7934090 commit b8efad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -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'),
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports = function(grunt) {
connect: {
server: {
options: {
port: 8000,
port: port,
base: '.'
}
}
Expand Down

0 comments on commit b8efad0

Please sign in to comment.