aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Šuppa <mr@shu.io>2013-09-12 00:20:09 +0200
committerMarek Šuppa <mr@shu.io>2013-09-12 00:20:09 +0200
commitb8efad0b27204dec8e9ca028a93764810c0abc6a (patch)
treeb33bd6bfdc2d7612d733ecd9444e72b29d220b35
parent79340908f451ea77b364b1955928664defbd3bf6 (diff)
downloadfosdem-2018-presentation-b8efad0b27204dec8e9ca028a93764810c0abc6a.tar
fosdem-2018-presentation-b8efad0b27204dec8e9ca028a93764810c0abc6a.tar.gz
Add option to Gruntfile.js to specify server port
-rw-r--r--Gruntfile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 4df3181..124a78d 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -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: '.'
}
}