If you generated a second webapp using yo webapp and want to run it at the same time as the first one, you must change its connection port and livereload port.
Change the connection port to 9001 and livereload port to 35731
Gruntfile.js
Change Connection Port and Livereload Port
        connect: {
            options: {
                port: 9001,
                open: true,
                livereload: 35731,
                // Change this to '0.0.0.0' to access the server from outside
                hostname: 'localhost'
node_modules/grunt-contrib-watch/tasks/lib/livereload.js
Change Livereload Port
module.exports = function(grunt) {
  var defaults = { port: 35731 };
Port Numbers
You can specify any port numbers in the range 1 to 65535. Note that on Mac/OSX and UNIX systems port numbers below 1024 will most likely require root access to be set.This work is licensed under the Creative Commons Attribution 3.0 Unported License.
 
No comments:
Post a Comment