Snugug / Aurora

Drupal HTML5 Base Theme
33 stars 14 forks source link

Livereload isn't killed when grunt watch is cancelled #31

Closed finteractive closed 10 years ago

finteractive commented 10 years ago

Sorry if this isn't specifically an aurora issue but I setup grunt according to the documentation and when I ctrl-z the process make some commits and then rerun grunt build I get this error

Waiting...Fatal error: Port 9001 is already in use by another process.

Killing terminal fixes this but I suspect I'm doing something wrong.

OSX 10.8 - compass-aurora 3.0.8,

iamcarrico commented 10 years ago

So, this is caused by some other program already using port 9001 on your local machine. To fix it, you just need to change the port number in the Gruntfile.js (see below, where I changed it to 5304), and then change your settings on your theme page in Drupal to be a custom port.

'use strict';

module.exports = function (grunt) {

  grunt.initConfig({
    watch: {
      options: {
        livereload: 5304
      },
alexander-marquardt commented 10 years ago

I found an answer taken from here to be useful: http://stackoverflow.com/questions/19268136/grunt-watch-livereload-fatal-error-port-35279-is-already-in-use-by-another-proc

curl localhost:9001/kill