Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
Close GH-245: allow port selection when setting starting serve.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmkrueger authored and revathskumar committed Apr 19, 2014
1 parent d98f24c commit 7eb7726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function (grunt) {
},<% } %>
livereload: {
options: {
livereload: LIVERELOAD_PORT
livereload: grunt.option('livereloadport') || LIVERELOAD_PORT
},
files: [
'<%%= yeoman.app %>/*.html',
Expand Down Expand Up @@ -82,7 +82,7 @@ module.exports = function (grunt) {
},
connect: {
options: {
port: SERVER_PORT,
port: grunt.option('port') || SERVER_PORT,
// change this to '0.0.0.0' to access the server from outside
hostname: 'localhost'
},
Expand Down

0 comments on commit 7eb7726

Please sign in to comment.